I have some trouble with Stuctured Documents (Version 1.0) and umlauts. Umlauts are changed to some unreadable text (2 characters) after some time. When I use HTML-Umlauts, it works to view, but the ZCatalog doesn't anymore find documents when a user doesn't soerch for the HTML-Umlauts. Is there a solution? --
Stephan Goeldi wrote:
I have some trouble with Stuctured Documents (Version 1.0) and umlauts. Umlauts are changed to some unreadable text (2 characters) after some time. When I use HTML-Umlauts, it works to view, but the ZCatalog doesn't anymore find documents when a user doesn't soerch for the HTML-Umlauts.
Hi Stephan! Which Zope-version do you use? I use Structured Document a lot with Zope 2.6.1 and encountered no problems with "Umlauts".
Umlauts are changed to some unreadable text (2 characters) after some time.
Seems to be that your browser switches from ISO-8859-1 to Unicode. Please check this in "View -> Character Coding" of your Browser. The page should be fine if you turn it back to ISO-8859-1, right? This problem can happen if you use methods like manage_changeProperties (setting a unicode-charset for the RESPONSE) "on the fly". Inserting something like <dtml-call "RESPONSE.setHeader('Content-type','text/html; charset=iso-8859-1;')"> in the "standard_html_footer" (please note that I wrote FOOTER!!! setHeader should be called as the last action, so it wins the run for the charset) should solve the problem. Working with "HTML-Umlauts" in StructuredDocument is fine for me too. I use ZCTextIndex. Cheers, Maik
Maybe you should read <http://www.zope.org/Members/ajung/howto/Locale%20Support%20for%20Structure d%20Text/> --On Dienstag, 8. April 2003 16:20 Uhr +0200 Stephan Goeldi <goeldi@goeldi.com> wrote:
I have some trouble with Stuctured Documents (Version 1.0) and umlauts. Umlauts are changed to some unreadable text (2 characters) after some time. When I use HTML-Umlauts, it works to view, but the ZCatalog doesn't anymore find documents when a user doesn't soerch for the HTML-Umlauts.
Is there a solution?
--
_______________________________________________ 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 )
Stephan Goeldi wrote at 2003-4-8 16:20 +0200:
I have some trouble with Stuctured Documents (Version 1.0) and umlauts. Umlauts are changed to some unreadable text (2 characters) after some time. When I use HTML-Umlauts, it works to view, but the ZCatalog doesn't anymore find documents when a user doesn't soerch for the HTML-Umlauts.
Is there a solution?
Seems, your Umlaute have been converted to UTF-8. Your problem may disappear when you set sys.setdefaultencoding('iso-8859-1') in your "sitecustimize.py" (you may need to create this file). Dieter
participants (4)
-
Andreas Jung -
Dieter Maurer -
Maik Jablonski -
Stephan Goeldi