Ticket #3403: patch.diff

File patch.diff, 452 bytes (added by boobsd@…, 18 years ago)
  • django/newforms/util.py

     
    77
    88def smart_unicode(s):
    99    if not isinstance(s, basestring):
    10         s = unicode(str(s))
     10        s = unicode(str(s), settings.DEFAULT_CHARSET)
    1111    elif not isinstance(s, unicode):
    1212        s = unicode(s, settings.DEFAULT_CHARSET)
    1313    return s
Back to Top