Ticket #1221: 1221.1.diff

File 1221.1.diff, 441 bytes (added by Maniac <Maniac@…>, 19 years ago)

Patch

  • django/utils/text.py

     
    100100        return r"\u%04x" % ord(match.group(1))
    101101
    102102    if type(s) == str:
    103         s = s.decode(DEFAULT_ENCODING)
     103        s = s.decode(DEFAULT_CHARSET)
    104104    elif type(s) != unicode:
    105105        raise TypeError, s
    106106    s = s.replace('\\', '\\\\')
Back to Top