Re: Translation: DjangoUnicodeDecodeError
On Thu, Oct 25, 2012 at 2:31 PM, Sandro Dutra <hexodin@gmail.com> wrote:
> Hi, I'm having a little problems with translations...
>
> I've various {% trans "anything" %}, everything is correctly configured, I
> do the makemessages and compilemesages with sucess, and everything works
> correctly, but I've a problem, when I insert special characters in *.po
> files, I get DjangoUnicodeDecodeError:
>
> DjangoUnicodeDecodeError at /
>
> 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in
> range(128). You passed in <django.utils.functional.__proxy__ object at
> 0x02BBEEF0> (<class 'django.utils.functional.__proxy__'>)
>
> Anyone can point a solution?
> Thanks in advance.
I think you have put characters into your po file that are not in the
correct encoding. Can you describe how you are creating these "special
characters"?
Also, the full traceback may be illuminating instead of just the exception.
Cheers
Tom
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home