fix for unicode, ask to use utf-8 encoding

This commit is contained in:
Rushabh Mehta 2011-08-11 13:27:15 +05:30
parent a7241e27dd
commit aee16cdfdc

View file

@ -295,7 +295,7 @@ def cstr(s):
s = s.encode('utf-8', 'ignore')
except:
pass
return unicode(s)
return unicode(s, 'utf-8')
def str_esc_quote(s):
"""