Django

Code

Ticket #8016 (closed: duplicate)

Opened 2 years ago

Last modified 2 years ago

Problem with decoding of non ASCII symbols.

Reported by: aabele Assigned to: nobody
Milestone: Component: django.contrib.admin
Version: SVN Keywords: newforms admin
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

diff.txt (5.4 kB) - added by aabele on 07/29/08 03:47:57.

Change History

07/29/08 03:47:57 changed by aabele

  • attachment diff.txt added.

07/29/08 08:23:07 changed by Karen Tracey <kmtracey@gmail.com>

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

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

07/29/08 19:52:01 changed by mtredinnick

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


Add/Change #8016 (Problem with decoding of non ASCII symbols.)




Change Properties
Action