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

Mailing List Archive: Zope: Users

Re: UTF-8 problem with zope2.10 and postgresql [Solved]

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


claibous2 at free

Nov 9, 2009, 6:59 AM

Post #1 of 2 (824 views)
Permalink
Re: UTF-8 problem with zope2.10 and postgresql [Solved]

----- "Jonathan (dev101)" <dev101 [at] magma> a écrit :

> ----- Original Message -----
> From: "Andreas Jung" <lists [at] zopyx>
> To: "Claire Boussard" <claibous2 [at] free>
> Cc: "zope" <zope [at] zope>
> Sent: Friday, November 06, 2009 12:47 PM
> Subject: Re: [Zope] UTF-8 problem with zope2.10 and postgresql
>
>
> > Am 06.11.09 17:40, schrieb Claire Boussard:
> >>
> >> In the HTML page
> >> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
> />
> >>
> > The ZPublisher does not care about that. You may set the
> content-type
> > explictly as HTTP header and not through http-equiv by calling
> >
> > RESPONSE.setHeader(key, value)
> >
> > (no idea how to do that using the ancient technology DTML).
>
>
> <dtml-call "RESPONSE.setHeader('Content-Type','text/html;
> charset=UTF-8')">

I tried this but it changed nothing, I think specifiying
default-zpublisher-encoding utf-8 in zope.conf does the same.

Eventually I have replaced
<dtml-var firstname>
with
<dtml-var expr="firstname.decode('utf8')">

I do'nt really understand why, and it's not very convenient as I must fix
all the pages, but it works!

Many thanks to all who responded.

Claire Boussard
_______________________________________________
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 )


lists at zopyx

Nov 9, 2009, 7:00 AM

Post #2 of 2 (762 views)
Permalink
Re: UTF-8 problem with zope2.10 and postgresql [Solved] [In reply to]

Am 09.11.09 15:59, schrieb Claire Boussard:
> ----- "Jonathan (dev101)" <dev101 [at] magma> a écrit :
>
>
>> ----- Original Message -----
>> From: "Andreas Jung" <lists [at] zopyx>
>> To: "Claire Boussard" <claibous2 [at] free>
>> Cc: "zope" <zope [at] zope>
>> Sent: Friday, November 06, 2009 12:47 PM
>> Subject: Re: [Zope] UTF-8 problem with zope2.10 and postgresql
>>
>>
>>
>>> Am 06.11.09 17:40, schrieb Claire Boussard:
>>>
>>>> In the HTML page
>>>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
>>>>
>> />
>>
>>>>
>>>>
>>> The ZPublisher does not care about that. You may set the
>>>
>> content-type
>>
>>> explictly as HTTP header and not through http-equiv by calling
>>>
>>> RESPONSE.setHeader(key, value)
>>>
>>> (no idea how to do that using the ancient technology DTML).
>>>
>>
>> <dtml-call "RESPONSE.setHeader('Content-Type','text/html;
>> charset=UTF-8')">
>>
> I tried this but it changed nothing,
I doubt that.

-aj
Attachments: lists.vcf (0.32 KB)

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


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