To use unicode characters, I put on the top of source file: -*- coding: utf-8 -*- and before any string I put an "u", like: u"My unicode string". On templates, I save the file as utf-8.
There's no workaround, only code. 2010/10/21 PureVirtual <1min...@gmail.com> > For people who might have the mentioned problem here is a simple > solution (at least a workaround): rename non-ASCII keys from the > registry path "HKEY_CLASSES_ROOT\MIME\Database\Content Type" (in my > case there were three of them starting with "аудио" and "видео"). > Source of solution (in Russian): > > http://victor-k-development.blogspot.com/2010/07/unicodedecodeerror-django.html > P.S. This seams to be a problem of Python 2.7. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@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-us...@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.