On Wed, Jan 22, 2014 at 11:38 AM, gilberto dos santos alves <
[email protected]> wrote:

> please look details about on [1]. if you put
>
> # -*- coding: utf-8 -*-  on sources and config files for django your string 
> "português" will be automatically handled.
>
>
Can you just try what I reported?  For example:

$ cat ~/foofoo.py
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext

print ugettext("Português")
$ python ~/foofoo.py
Traceback (most recent call last):
...
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7:
ordinal not in range(128)

So, I'm not sure what you are talking about.
-- 
Henrique Romano

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CA%2BEHudKiJcgLQg-K2pwQrBFFcCTr%2BpV_t9VqmkSo%3D6n-6Kjqaw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to