Hi,
4. I insert html-code and some russian chars for testing
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body> ...russian chars... </body> </html>
After Saving all looks great in ZMI and also in my webbrowser.
5. Now I add one line to use a MessageCatalog:
<dtml-var "MessageCatalog('Hallo Welt!')">
After that, all of my utf-8-chars are broken in my webbrowser. I check browser-encoding and it is still utf-8. In ZMI my "DTML Document" looks good. This line must switch something in the output-encoding in the internal page-render (I don't know, how to better explain it). Is this an error in Localizer or in Zope or have I overlook a fault?
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? Thanks, Patrick