Wednesday, March 2, 2011

AW: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

Good morning !

Unfortunately i cant help you with your problem because i have the same problem here ;)
I can however answer youre question if this is a common problem for django beginners.
I don't think it's common for django beginners, i'd rather say it's common for python beginners - like me ;)

Kind regards


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.szabo@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146


-----Ursprüngliche Nachricht-----

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Vladimir
Gesendet: Donnerstag, 03. März 2011 07:48
An: Django users
Betreff: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment