[Zope] utf-8 problem in Zope when using Localizer

Andreas Jung lists at zopyx.com
Fri Aug 24 03:51:30 EDT 2007



--On 24. August 2007 09:36:30 +0200 Jaroslav Lukesh <lukesh at seznam.cz> 
wrote:

>
> ----- Original Message ----- From: "Patrick Ulmer" <ulmer at truckport.de>
>>> The http-equiv tag means not much to browser. Try setting the
>>> content-type
>>> including the charset within the HTTP response
>>> (REQUEST.RESPONSE.setHeader(...)).
>>
>> I have checked it but it is the same problem. Browser is encoding in
>> utf-8 correct, but the result (html sourcecode from zope) is not utf-8
>> anymore after inserting <dtml-var "MessageCatalog('Hallo Welt!')"> and I
>> don't know why it changed. How can a dtml-var-tag changed the encoding
>> for the document?
>>
>
> What about
>
> <dtml-var "_.str(MessageCatalog('Hallo Welt!'))">
>
> Use _.str() solves many potential problems
>

That's the mallet method.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070824/b628e035/attachment.bin


More information about the Zope mailing list