Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users
Re: charset problems (utf-8)
 

Index | Next | Previous | View Flat


ramosh at gmail

Feb 6, 2012, 4:38 AM


Views: 1256
Permalink
Re: charset problems (utf-8) [In reply to]

I guess no one has charset problems...



On Thu, Feb 2, 2012 at 6:06 PM, Hugo Ramos <ramosh [at] gmail> wrote:
> Yellow,
>
> I've noticed charset problems displaying HTML pages.
>
> Let's say I want to display a page using a DTML Method like this:
>
> <html>
> <head>
> ...
> </head>
>
> <body>
> á Á à À ç
> </body>
> </html>
>
> This page is ok and I can see the portuguese letters fine.
>
> The problem starts when I do this:
>
> <html>
> <head>
> ...
> </head>
>
> <body>
> á Á à À ç <br>
> <dtml-var sometextfield>
> </body>
> </html>
>
> The first line of characters shows some strange characters and the
> sometextfield shows up fine even if it has the same portuguese
> characters.
>
>
> sometextfield comes from a mySQL server using utf-8 as charset and collation.
>
> zope.conf has the following:
>
> rest-input-encoding utf-8
> rest-output-encoding utf-8
>
> The browsers also have UTF-8 as the encoding (safari, firefox and
> chrome) all show me the same problem.
>
> I also noticed some strange behavior...
> If I create "á Á à À ç" as a property field using ustring and call it
> as <dtml-var someproperty> also gets fine in the browser.
>
> Anyone seen this??? Double encoding maybe???
>
>
> TIA
>
> --
> Hugo Ramos - IT Project Manager
> E: ramosh [at] gmail
> W: www.hugoramos.eu
>
> "Nobody expects the Spanish Inquisition!" - Monty Python's
>
> Para visualizar este email em 3D, bata com uma bola de snooker na
> testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.



--
Hugo Ramos - IT Project Manager
E: ramosh [at] gmail
W: www.hugoramos.eu

"Nobody expects the Spanish Inquisition!" - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Subject User Time
charset problems (utf-8) ramosh at gmail Feb 2, 2012, 10:06 AM
    Re: charset problems (utf-8) ramosh at gmail Feb 6, 2012, 4:38 AM
    Re: charset problems (utf-8) objectvalues at gmail Feb 6, 2012, 7:24 AM
    Re: charset problems (utf-8) ramosh at gmail Feb 6, 2012, 7:58 AM
    Re: charset problems (utf-8) ramosh at gmail Feb 6, 2012, 7:59 AM
    Re: charset problems (utf-8) fernando at cmartins Feb 6, 2012, 4:11 PM
    Re: charset problems (utf-8) yourpadre at gmail Feb 9, 2012, 1:13 PM
    Re: charset problems (utf-8) ramosh at gmail Feb 10, 2012, 1:36 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.