You could try to change tha charset dinamically.
Use iso-8859-1 for Spanish
and utf8 for english.

On 8 Nov, 12:13, Benigno <bca...@albendas.com> wrote:
> Salingrosso:    Yes to both of your questions.
>
> I had not had this issue before, as translated text with T('') gets
> translated taking this into account. So I ussually wrote the program
> in english, and translated to spanish using the translation files.
>
> In this occasion, I am writing in spanish and translating to english,
> thats why its only now that I am noticing this behaviour.
>
> On Nov 8, 10:28 am, salingrosso <salingro...@gmail.com> wrote:
>
> > If you see the source code of index.html generated by
> > the server do you see:
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=UTF-8" /> ?
>
> > Do you use this syntax to insert layout.html in your index.html?
> > {{extend 'layout.html'}}
>
> > 2009/11/8 Benigno <bca...@albendas.com>
>
> > > Hello,
>
> > >    There may be some very easy solution to this or something I am
> > > doing wrong that I am not aware of, but when I have a layout.html with
> > > the tag:
>
> > >    <meta http-equiv="Content-Type" content="text/html;
> > > charset=UTF-8" />
>
> > >    And then I have an include, like index.html, when I write accented
> > > words on the included file, they do not get correctly "parsed" and I
> > > get the funny symbols.
>
> > >   The same code, if writen straight in the layout.html, outputs
> > > everything correctly.
>
> > >   Is there anything I can add to my index.html file so that it uses
> > > the same meta tag as in the layout it is included in?.
>
> > > Thanks again,
> > > Benigno.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to