Danish characters in Zope on win2000
I cant get the correct danish characters in my Zope on win2000 ____________________________________ Zope Version (Zope 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) Python Version 2.1.3 (#35, Apr 8 2002, 17:47:50) [MSC 32 bit (Intel)] System Platform win32 ____________________________________ I start Zope with: "....z2.py" -D -L danish_denmark I can verify the locale from this external method: def getEnv(self): return locale.getlocale() Which gives me the following: ['Danish_Denmark', '1252'] ____________________________________ I have an index_html looking like: <html metal:define-macro="page"> ... <div metal:define-slot="page_content"> æøåÆØÅ </div> ... </html> See attachment: index1.jpg to see how the 6 characters in <div>æøåÆØÅ</div> 'look' in danish. in HTML:"æøå&Aelig;ØÅ" ____________________________________ When I test the page I get garbled characters See attachment: test.jpg to see how the 6 characters look when rendered. (it seems there are 12 characters...) What am I doing wrong ? Any help would be appreciated. regards Jørgen Jørgensen Denmark
Well 1. I'm using the same system as you in terms of Zope and Python 2. I start Zope with (z2.py -D -L danish_denmark) 3. I don't have the problem. What I did to test: 1. Created a test folder 2. Created an index_html containing: <html metal:define-macro="page"> <div metal:define-slot="page_content"> æøåÆØÅ </div> </html> 3. Tested the page and got æøåÆØÅ But of the fact that I cannot reproduce your problem is not the same as there is no problem. Med venlig hilsen \Oliver
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of gardsted@tiscali.dk Sent: 16. juni 2002 11:34 To: zope@zope.org Subject: [Zope] Danish characters in Zope on win2000
I cant get the correct danish characters in my Zope on win2000 ____________________________________ Zope Version (Zope 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) Python Version 2.1.3 (#35, Apr 8 2002, 17:47:50) [MSC 32 bit (Intel)] System Platform win32 ____________________________________ I start Zope with:
"....z2.py" -D -L danish_denmark
I can verify the locale from this external method: def getEnv(self): return locale.getlocale()
Which gives me the following:
['Danish_Denmark', '1252'] ____________________________________
I have an index_html looking like:
<html metal:define-macro="page"> ... <div metal:define-slot="page_content"> æøåÆØÅ </div> ... </html>
See attachment: index1.jpg to see how the 6 characters in <div>æøåÆØÅ</div> 'look' in danish. in HTML:"æøå&Aelig;ØÅ" ____________________________________
When I test the page I get garbled characters See attachment: test.jpg to see how the 6 characters look when rendered. (it seems there are 12 characters...)
What am I doing wrong ? Any help would be appreciated.
regards Jørgen Jørgensen Denmark
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.370 / Virus Database: 205 - Release Date: 05-06-2002
Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.370 / Virus Database: 205 - Release Date: 05-06-2002
<snip>
-- Original Message -- From: "Oliver Marx" <oliver@tekk.dk> To: <gardsted@tiscali.dk>, <zope@zope.org> Cc: "Zope mailinglist" <zope@zope.org> Subject: RE: [Zope] Danish characters in Zope on win2000 Date: Sun, 16 Jun 2002 14:00:01 +0200
Well
1. I'm using the same system as you in terms of Zope and Python 2. I start Zope with (z2.py -D -L danish_denmark) 3. I don't have the problem. </snip>
Thank You for Your investigation. I can do it now too. It seemed my favorite non MS browser was the problem :( I can do it right using MSIE :| My browser delivered strange characters in through the zope management interface, im afraid. regards Jorgen
gardsted@tiscali.dk writes:
... My browser delivered strange characters in through the zope management interface, im afraid. Did you tell it which "charset" it should use?
Usually, the default is "iso-8859-1" (which should be okay in Denmark), but maybe a misconfiguration... Dieter
participants (3)
-
Dieter Maurer -
gardsted@tiscali.dk -
Oliver Marx