git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@301
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
final_title = ' '.join([s for s in parts if s])
if log and (final_title <> converted_title): log(" final title : %s" % final_title)
parser.title = final_title
+
+ icon = parser.icon
+ if isinstance(icon, unicode):
+ try:
+ parser.icon = icon.encode('ascii')
+ except UnicodeEncodeError:
+ if parser.charset:
+ parser.icon = icon.encode(parser.charset)
return parser