Opened 8 years ago
Closed 8 years ago
#28701 closed Bug (wontfix)
QueryDict processes some Unicode symbols incorrectly
Description ¶
Using Django 1.8 I get strange result feeding QueryDict a string which contains Unicode U+00AB symbol. More concrete, first of two bytes is omitted.
Other randomly taken symbols are parsed correctly.
double_angle="value=%C2%AB" # « yo="value=%D1%91" # ё katakana="value=%E3%82%A1" # ァ for qs in (double_angle, yo, katakana): dct=QueryDict(query_string=qs, encoding=None) print("%s -> %s" % (qs, dct))
Output:
value=%C2%AB -> <QueryDict: {u'value': [u'\xab']}> value=%D1%91 -> <QueryDict: {u'value': [u'\u0451']}> value=%E3%82%A1 -> <QueryDict: {u'value': [u'\u30a1']}>
Change History (3)
comment:1 by , 8 years ago
comment:3 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
On Django master with Python 3 (Python 2 is no longer supported there), the output is:
It looks like that's correct behavior? If so, we can most likely close the issue. Per our supported versions policy, 1.8 is only receiving security and data loss fixes.