Opened 7 years ago

Closed 7 years ago

Last modified 7 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: UI/UX:


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 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by aabele

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

comment:2 Changed 7 years ago by mtredinnick

(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