Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed #1221 - changed usage of wrong settings variable DEFAULT_ENCODI…

…NG to the correct DEFAULT_CHARSET.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e4e2877b248c2b165950709571ccb29a0a0d4910 1 parent 19abf04
Georg Bauer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/text.py
View
2  django/utils/text.py
@@ -100,7 +100,7 @@ def fix(match):
return r"\u%04x" % ord(match.group(1))
if type(s) == str:
- s = s.decode(DEFAULT_ENCODING)
+ s = s.decode(DEFAULT_CHARSET)
elif type(s) != unicode:
raise TypeError, s
s = s.replace('\\', '\\\\')
Please sign in to comment.
Something went wrong with that request. Please try again.