renderContents as unicode

This commit is contained in:
James Ralston 2010-03-07 22:21:55 -08:00
parent 043223eac6
commit 43d6a53d7b

View File

@ -15,10 +15,7 @@ from calibre.utils.logging import default_log
from calibre.ptempfile import TemporaryFile
def _clean(s):
try:
return s.replace(u'\u00a0', u' ')
except UnicodeDecodeError:
return u""
return s.replace(u'\u00a0', u' ')
def _detag(tag):
str = u""