bug fix for error reported by Marek Sarvas (error data)

This commit is contained in:
Miroslav Stampar 2010-08-08 21:48:22 +00:00
parent 1d8953ebdb
commit e0fe5d1504

View File

@ -1354,7 +1354,7 @@ def getPartRun():
def getUnicode(value):
if isinstance(value, basestring):
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding if 'dataEncoding' in conf else "utf-8")
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding if 'dataEncoding' in conf else "utf-8", errors='replace')
else:
return unicode(value)