Hello,
i ran into this problem too, the solution was to specify the page coding
from the very begining:
" # -*- coding: latin-1 -*- "
this is my first line in a .py file where i have/deal with special chars.
it latin-1 does not work, try utf-8, although it should work
Good Luck


Karen Tracey-2 wrote:
> 
> On Wed, Feb 3, 2010 at 3:52 PM, zenWeasel <[email protected]> wrote:
> 
>> I am new to Django development, and have not been able to find this in
>> the documentation.
>>
>> In my templates, if I use any characters that are Unicode and not
>> straight ASCII e.g. é or ˝, the template fails. Is this normal
>> behavior? Is there an easy way to expand the templates to handle the
>> Unicode set or convert them to entities?
>>
> 
> No, it's not normal behavior. Please read:
> 
> http://docs.djangoproject.com/en/dev/ref/unicode/
> 
> If you still have problems after reading that, likely someone on this list
> will be able to help work out what is wrong.  However you will get much
> better help if you are a bit more specific about what goes wrong than "the
> template fails."
> 
> Karen
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 


-- 
View this message in context: 
http://old.nabble.com/Unicode-ASCII-problems-tp27443539p27449101.html
Sent from the django-users mailing list archive at Nabble.com.

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

Reply via email to