Thursday, September 18, 2014

unicode problems in admin interface

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlQa4TwACgkQnKyV+QSePJYDEQCfYwmyeLs7jiRI61SIF++1Di1W
ZCkAn1WT3yNXrBsUvcV/diCdbjV6Dls4
=GSci
-----END PGP SIGNATURE-----
I have suddenly unicode problems with de admin interface:

"DjangoUnicodeDecodeError at /admin/art/photographextra/

'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in
range(128). You passed in <exposition: [Bad Unicode data]> (<class
'art.models.exposition'>)
...
Unicode error hint

The string that could not be encoded/decoded was: l>Mus��e du"

The site itself is behaving well:
<http://glaskunst.liakoster.nl/expositie/medium-verre-21/>.

settings.py:
"...
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli.dashboard',
'grappelli',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'art',
'rosetta',
'dbgettext',
)
...
DEFAULT_CHARSET='utf-8'
FILE_CHARSET='utf-8'
DEFAULT_CONTENT_TYPE='text/html'
..."

"jaap@liakoster:/var/django/liakoster.nl/test2$ python -c "import
django; print(django.get_version())" 1.7
jaap@liakoster:/var/django/liakoster.nl/test2$ python -V
Python 2.7.3
jaap@liakoster:/var/django/liakoster.nl/test2$"



What is going on?


--

Jaap van Wingerde
e-mail: 1234567890@vanwingerde.nl

No comments:

Post a Comment