How to support Chinese Characters in ZMI?
Hi, I find that the ZMI doesn't support Chinese very well. I type some chinese characters in the ZMI, and after "save change", the characters didn't display well. The default charset for ZMI is "ISO-8859" which doesn't support Chinese. I want to change it to "UTF-8" to support Chinese. My zope version is 2.6.4 and i don't want to upgrade to 2.7. Is there some way to solve the problem in v2.6? Thanks in advance!
This code will force all your dtml ZMI pages to serve Unicode. You have to manage to insert it, preferably prior to any html tag: <dtml-call "RESPONSE.setHeader('Content-Type','text/html; charset=UTF-8')"> <dtml-var "u''"> Ausum ----- Original Message ----- From: "Lian Liming" <dawnlinux@realss.com> To: <zope@zope.org> Sent: Wednesday, April 28, 2004 8:34 PM Subject: [Zope] How to support Chinese Characters in ZMI?
Hi, I find that the ZMI doesn't support Chinese very well. I type some chinese characters in the ZMI, and after "save change", the characters didn't display well. The default charset for ZMI is "ISO-8859" which doesn't support Chinese. I want to change it to "UTF-8" to support Chinese. My zope version is 2.6.4 and i don't want to upgrade to 2.7. Is there some way to solve the problem in v2.6? Thanks in advance!
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Lian Liming wrote at 2004-4-28 20:34 -0500:
I find that the ZMI doesn't support Chinese very well. I type some chinese characters in the ZMI, and after "save change", the characters didn't display well. The default charset for ZMI is "ISO-8859" which doesn't support Chinese. I want to change it to "UTF-8" to support Chinese. My zope version is 2.6.4 and i don't want to upgrade to 2.7. Is there some way to solve the problem in v2.6? Thanks in advance!
You can define a property (e.g. at the "Root folder") with the name "management_page_charset". It controls the charset of management pages. When you look at "App/manage_page_header.dtml", you can see how this definition is used. You can do something similar in your own templates. -- Dieter
participants (3)
-
Ausum Studio -
Dieter Maurer -
Lian Liming