hmmm,

    But why does it interpret it differently when the text is in an
include than when the text is in the layout.html?  If I copy and paste
the texts into the layout they appear correctly, whereas if they are
in the index.html (which is the one that extends layout), then the
don't.



On Nov 8, 5:20 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Nov 8, 2009, at 7:33 AM, Benigno wrote:
>
>
>
> > I didnt explain myself correctly. I am setting the <meta http-
> > equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> > dinamically when in spanish. However, the accented words still show
> > badly.
>
> The character set specified by the http header takes precedence over  
> the meta tag, and web2py does this:
>
> class HTTP(BaseException):
>      ...
>      def to(self, responder):
>          ...
>          if not 'Content-Type' in self.headers:
>              self.headers['Content-Type'] = 'text/html; charset=UTF-8'
>
> It can be overridden, as you see, but I don't know what all the  
> implications of that would be. Sticking to utf-8 might be a better  
> choice.
>
>
>
> > Massimo:
> >   I dont understand exactly what you mean, whats the correct way to
> > do this then?.
>
> > On Nov 8, 4:06 pm, salingrosso <salingro...@gmail.com> wrote:
> >> 2009/11/8 mdipierro <mdipie...@cs.depaul.edu>
>
> >>> You do not have the option of using latin1. utf8 is set by web2py in
> >>> the http header.
>
> >> But in layout.html I see:
> >>   <meta http-equiv="Content-Type" content="text/html;  
> >> charset=UTF-8" />
--~--~---------~--~----~------------~-------~--~----~
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