fix unicode bug

This commit is contained in:
Fabien Benureau 2013-11-11 00:52:32 +01:00
parent 10fd0f86d6
commit f92430de33

View File

@ -56,7 +56,8 @@ class EnDecoder(object):
def decode_bibdata(self, bibdata_raw): def decode_bibdata(self, bibdata_raw):
"""""" """"""
bibdata_rawutf8 = unicode(bibdata_raw) bibdata_rawutf8 = bibdata_raw
# bibdata_rawutf8 = unicode(bibdata_raw, 'utf8') # FIXME this doesn't work
for fmt in EnDecoder.decode_fmt.values(): for fmt in EnDecoder.decode_fmt.values():
try: try:
bibdata_stream = StringIO.StringIO(bibdata_rawutf8) bibdata_stream = StringIO.StringIO(bibdata_rawutf8)