git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@271
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
return None
if title.string:
- title = title.string.encode(_charset)
+ title = title.string
else:
parts = []
for part in title:
parts.append(part.strip())
title = ''.join(parts)
+ if _charset or meta_charset:
+ title = title.encode(_charset or meta_charset)
+
meta = head.find(_find_contenttype, recursive=False)
if meta:
try:
else:
meta_charset = False
- if charset or meta_charset:
- title = title.encode(charset or meta_charset)
-
meta = head.find(_find_refresh, recursive=False)
if meta:
refresh = meta.get("content")