Comment 4 for bug 333223

Revision history for this message
GEM (nimp3) wrote :

sorry I have forgotten "try :" :
good code is
client_encoding = try :
unicode(value, "ascii")
     except UnicodeError:
         value = unicode(value, "utf-8")
     else:
         pass#