Exception Type: UnicodeDecodeError
Exception Value: 'ascii' codec can't decode byte 0xc3 in position 4:
ordinal not in range(128)
Exception Location: /usr/lib/python2.3/gettext.py in ugettext, line
342
I've checked that the file encoding is Unicode('utf-8') and if I
eliminate the internationalization tag I don't get the error and the
page renders correctly.
It looks like the problem is at gettext module, how can I avoid this. I
need to translate this site to many languages.
Thanks in advance
Goyo.
On 6/3/06, goyore...@gmail.com <goyore...@gmail.com> wrote:
>
> I have encountered a problem with Spanish tilde into my django
> templates.
> If I use the {% trans 'something' %} where something contains a Spanish
> tilde. I get an error which tells me:
>
> Exception Type: UnicodeDecodeError
> Exception Value: 'ascii' codec can't decode byte 0xc3 in position 4:
> ordinal not in range(128)
> Exception Location: /usr/lib/python2.3/gettext.py in ugettext, line
> 342
>
> I've checked that the file encoding is Unicode('utf-8') and if I
> eliminate the internationalization tag I don't get the error and the
> page renders correctly.
I have reopened the ticket #1945 because I´m experiencing a similar problem
(es_AR here), but now I´m seeing that has been reported before. See
tickets #1715 and #170 (the comment previous to the last one of this ticket
seems to be the solution to the problem).
>
> It looks like the problem is at gettext module, how can I avoid this. I
> need to translate this site to many languages.
>
> Thanks in advance
>
> Goyo.
>
--
Ramiro Morales