Ticket #3403: patch.diff
File patch.diff, 452 bytes (added by , 18 years ago) |
---|
-
django/newforms/util.py
7 7 8 8 def smart_unicode(s): 9 9 if not isinstance(s, basestring): 10 s = unicode(str(s) )10 s = unicode(str(s), settings.DEFAULT_CHARSET) 11 11 elif not isinstance(s, unicode): 12 12 s = unicode(s, settings.DEFAULT_CHARSET) 13 13 return s