Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Encoding problem in templates.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
goyoregalado@gmail.com  
View profile  
 More options Jun 3 2006, 3:25 pm
From: "goyoregal...@gmail.com" <goyoregal...@gmail.com>
Date: Sat, 03 Jun 2006 19:25:19 -0000
Local: Sat, Jun 3 2006 3:25 pm
Subject: Encoding problem in templates.
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.

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ramiro Morales  
View profile  
 More options Jun 3 2006, 4:01 pm
From: "Ramiro Morales" <cra...@gmail.com>
Date: Sat, 3 Jun 2006 17:01:43 -0300
Local: Sat, Jun 3 2006 4:01 pm
Subject: Re: Encoding problem in templates.
Goyo,

On 6/3/06, goyoregal...@gmail.com <goyoregal...@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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »