[Zope] Character set problems

Peter Bengtsson peterbe at gmail.com
Thu Sep 8 14:03:13 EDT 2005


Set the locale on the Zope installation in zope.conf

If you're unsure about your code, try this
$ set | grep LANG 

On 9/8/05, Niklas Saers <niklassaers at gmail.com> wrote:
> Hey guys,
>  I've installed Zope on a FreeBSD server. My problem domain is very small:
> display a list of when people are unavailable, and let people update the
> list. This is all in Danish, and here are come my problems. Danish has three
> extra letters not in the ASCII alfabet, three upper-case and three
> lower-case. When getting the data from a <input name="test" /> where I've
> written "æ ø å Æ Ø Å", I get: æ ø Ã¥ Æ Ø Ã…
>  
>  What is the standard way of ensuring that I get the correct data?
>  
>  I tried writing a little converter, but the string
>  
>  tekst = tekst.replace("\xc3\xa6", "ae");
>  
>  gives me the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3
> in position 0: ordinal not in range(128)
>  
>  Do you have any suggestion on how to overcome these problems?
>  
>  Cheers
>  
>     Nik 
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list