Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8016 closed (duplicate)

Problem with decoding of non ASCII symbols.

Reported by: aabele Owned by: nobody
Component: contrib.admin Version: dev
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

Description

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/options.py 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 16 years ago.

Download all attachments as: .zip

Change History (3)

by aabele, 16 years ago

Attachment: diff.txt added

comment:1 by Karen Tracey <kmtracey@…>, 16 years ago

Resolution: duplicate
Status: newclosed

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

comment:2 by Malcolm Tredinnick, 16 years ago

(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