Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8016 closed (duplicate)

Problem with decoding of non ASCII symbols.

Reported by: aabele Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: newforms admin
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I'm using development version django with newforms admin. When I tried to set verbose name for model (verbose_name = 'Mājas lapas tekstu') using latvian symbols, I got an UnicodeDecodeError. Patch attached.

Exception Type: 	UnicodeDecodeError
Exception Value: 	'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128)
Exception Location: 	/django/contrib/admin/ in add_view, line 506
Python Executable: 	/usr/bin/python
Python Version: 	2.5.2

Attachments (1)

diff.txt (5.4 KB) - added by aabele 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by aabele

Attachment: diff.txt added

comment:1 Changed 11 years ago by Karen Tracey <kmtracey@…>

Resolution: duplicate
Status: newclosed

Already reported in #7992 but I've noted over there that this one has a patch.

comment:2 Changed 11 years ago by Malcolm Tredinnick

(In [8144]) Fixed #7992 -- Interpolate UTF-8 verbose_names correctly into unicode strings
in the admin interface. Patch from aabele. Refs #8016.

Note: See TracTickets for help on using tickets.
Back to Top