Ticket #4773: unicode_fix.diff
File unicode_fix.diff, 491 bytes (added by , 17 years ago) |
---|
-
django/utils/encoding.py
37 37 if hasattr(s, '__unicode__'): 38 38 s = unicode(s) 39 39 else: 40 s = unicode(s tr(s), encoding, errors)40 s = unicode(smart_str(s), encoding, errors) 41 41 elif not isinstance(s, unicode): 42 42 s = unicode(s, encoding, errors) 43 43 return s