how to use chinese character in zope 2.8.7
zope,hi! i use zope2.8.7 in FC5 chinese edition, in ZMI i can input chinese ,but when i saved,the chinese character change to $#XXXX,i want to know how can i solve it.when chinese character is a part of URL,it prompt me "invalid URL". thinks! LYNN LYNN0210@163.COM 2006-07-27
LYNN wrote:
zope,hi!
i use zope2.8.7 in FC5 chinese edition, in ZMI i can input chinese ,but when i saved,the chinese character change to $#XXXX,i want to know how can i solve it.when chinese character is a part of URL,it prompt me "invalid URL".
thinks!
Hi Lynn You need to set the Zope character-encoding to a Unicode encoding. I use utf-8 and it works. UTF-8 is not very efficient for Chinese but I do know it works! You do this two places in Zope: 1: in the zope.conf there should be a line default-zpublisher-encoding utf-8 If there isn't, add it. If it says something else, change it. 2: In the root of the Zope Management Interface, choose the properties tab. In it, add a new property called MANAGEMENT_PAGE_CHARSET of type 'string' with value utf-8. 3: restart Zope This assumes that the rest of your site infrastructure is OK, including Apache encoding. best -- Mark Barratt Text Matters Information design: we help explain things using language | design | systems | process improvement ______________________________________________________ phone +44 (0)118 986 8313 email markb@textmatters.com web http://www.textmatters.com
Mark Barratt wrote:
2: In the root of the Zope Management Interface, choose the properties tab. In it, add a new property called MANAGEMENT_PAGE_CHARSET of type 'string' with value utf-8.
Actually, for hysterical raisins, this needs to be UTF-8 rather than utf-8 in order for the unicode property types to make themselves apparent. Aside from this, use unicode for everything... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris Withers wrote:
Mark Barratt wrote:
2: In the root of the Zope Management Interface, choose the properties tab. In it, add a new property called MANAGEMENT_PAGE_CHARSET of type 'string' with value utf-8.
Actually, for hysterical raisins, this needs to be UTF-8 rather than utf-8 in order for the unicode property types to make themselves apparent.
Aside from this, use unicode for everything...
cheers,
Chris
Chris, Just a correction: hysterical raisins are grapes. :-)
+-------[ David H ]---------------------- | Chris Withers wrote: | | Actually, for hysterical raisins, this needs to be UTF-8 rather than | utf-8 in order for the unicode property types to make themselves apparent. | | Chris, | Just a correction: hysterical raisins are grapes. Q: What's green and commutes? A: An abelian grape. Sorry Maths Geek Humour d8) -- Andrew Milton akm@theinternet.com.au
Andrew Milton wrote:
+-------[ David H ]---------------------- | Chris Withers wrote: | | Actually, for hysterical raisins, this needs to be UTF-8 rather than | utf-8 in order for the unicode property types to make themselves apparent. | | Chris, | Just a correction: hysterical raisins are grapes.
Q: What's green and commutes? A: An abelian grape.
Sorry Maths Geek Humour d8)
The grapes of math? Ok this has to stop.
Chris Withers wrote:
Mark Barratt wrote:
2: In the root of the Zope Management Interface, choose the properties tab. In it, add a new property called MANAGEMENT_PAGE_CHARSET of type 'string' with value utf-8.
Actually, for hysterical raisins, this needs to be UTF-8 rather than utf-8 in order for the unicode property types to make themselves apparent.
Aside from this, use unicode for everything...
Btw, still waiting for comments, thumbs down/up for: http://www.zope.org/Collectors/Zope/2148 cheers Tino
Tino Wildenhain wrote:
Btw, still waiting for comments, thumbs down/up for:
you have my +1 recorded. Setting the management_page_charset property is an obscure and ill-documented fix for a common problem, which cost me a lot of bafflement and time to resolve. -- Mark Barratt Text Matters Information design: we help explain things using language | design | systems | process improvement ______________________________________________________ phone +44 (0)118 986 8313 email markb@textmatters.com skype mark_barratt web http://www.textmatters.com
participants (6)
-
Andrew Milton -
Chris Withers -
David H -
LYNN -
Mark Barratt -
Tino Wildenhain