Hello!

I got the same error when i tried to work with Cyrillic charset in
Python.
In my case it was pure Python problem.
Here is good explanation why it happened: 
http://docs.python.org/howto/unicode.html
and  http://python.su/forum/viewtopic.php?pid=6476 (rus)

In your case, most probably django crashs when it reads nonASCII
characters from DB.


Wadim.


On 3 мар, 08:48, Vladimir <veva...@yandex.ru> wrote:
> Good morning!
> In me first exercise project with Django I met an error message:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position
> 0: ordinal not in range(128). Admin pages are built without css.
> Then I changed all .py-files entering
> # -*- coding: utf-8 -*-
> into the first row and recreated database:
> ALTER DATABASE `djangodb` DEFAULT CHARACTER SET utf-8 COLLATE
> utf8_unicode_ci
> I also tryed COLLATE utf8_swedish_ci. Then I recreated tables with
> manage.py syncdb.
> No effect. Is this a typical problem of Django beginners?
> I need only russian and english languages in my projects endeed.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to