Re: [Zope] charset problems (utf-8)

2012-02-10 Thread Hugo Ramos
Hi Miguel, Yes, as I wrote in my first email, all encoding options in zope.conf are set to utf-8... On Thu, Feb 9, 2012 at 9:13 PM, Miguel Beltran R. yourpa...@gmail.com wrote: 2012/2/6 Hugo Ramos ram...@gmail.com But this doesn't seem to be the problem because templates encoded as

Re: [Zope] charset problems (utf-8)

2012-02-09 Thread Miguel Beltran R.
2012/2/6 Hugo Ramos ram...@gmail.com But this doesn't seem to be the problem because templates encoded as utf-8 or iso-8859-1 all have the same problem. Any more ideas? are you played witth *default-zpublisher-encoding* option in zope.conf? Lo

Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
I guess no one has charset problems... On Thu, Feb 2, 2012 at 6:06 PM, Hugo Ramos ram...@gmail.com 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

Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Dragos Chirila
Hi, You have to make sure that everything has the same encoding (strings, text values). I recomend you to convert everything to unicode and then put something like below as a first line in your page: span tal:replace=python:request.RESPONSE.setHeader('content-type','text/html;charset=utf-8') /

Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
The correct prefix in the HTML header (meta http-equiv=Content-Type content=text/html; charset=utf-8 is not needed because it affects the browser behavior only and all my 3 browsers are set to UTF-8 by default. I've checked and I have some templates encoded as utf-8 and others as iso-8859-1. This

Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
Is there any tool I can use to convert all objects in my data.fs to utf-8? On Mon, Feb 6, 2012 at 3:24 PM, Dragos Chirila objectval...@gmail.com wrote: Hi, You have to make sure that everything has the same encoding (strings, text values). I recomend you to convert everything to unicode

Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Fernando Martins
On 02/06/2012 04:59 PM, Hugo Ramos wrote: Is there any tool I can use to convert all objects in my data.fs to utf-8? I had unicode related problems which usually come from mixing different encodings. In my case pretty much all my data also comes from a relational database. Also, not all

[Zope] charset problems (utf-8)

2012-02-02 Thread Hugo Ramos
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