From f92430de33e56c1692286b2baea18a34be3acb78 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Mon, 11 Nov 2013 00:52:32 +0100 Subject: [PATCH] fix unicode bug --- papers/endecoder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/papers/endecoder.py b/papers/endecoder.py index 546141e..aeac06b 100644 --- a/papers/endecoder.py +++ b/papers/endecoder.py @@ -56,7 +56,8 @@ class EnDecoder(object): 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(): try: bibdata_stream = StringIO.StringIO(bibdata_rawutf8)