I registered the help directory using context.registerHelp(directory='help') in my product's __init__.py. Then I placed UTF-8 encoded STX file in my language there, but the help via ZMI is displayed with garbled UTF-8 chars. It's unreadable, but it is not the matter of browser's Display encoding switch. It's Zope 2.7.5. What can I do to display the file correctly? -- \//\/\ (Sometimes credited as 1494 F8DD 6379 4CD7 E7E3 1FC9 D750 4243 1F05 9424.)
Vlada Macek wrote:
It's Zope 2.7.5. What can I do to display the file correctly?
IIRC, somewhere in ZPublisher/BaseRequest.py there's a hard-coded encoding to latin-1, try changing that to utf-8... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Vlada Macek wrote at 2005-8-31 18:13 +0200:
... in my product's __init__.py. Then I placed UTF-8 encoded STX file in my language there, but the help via ZMI is displayed with garbled UTF-8 chars. It's unreadable, but it is not the matter of browser's Display encoding switch.
It's Zope 2.7.5. What can I do to display the file correctly?
Almost surely, the "charset" parameter of the "Content-Type" response header is not correctly set. Find out which template presents the help pages. See how it sets the "Content-Type". Adjust as necessary. -- Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Vlada Macek