[Zope3-Users] Problem with Umlauts

Egon Frerich e.frerich at nord-com.net
Mon May 8 17:07:49 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Andreas,

Andreas Jung schrieb am 08.05.2006 22:28:

> 
> 
> --On 8. Mai 2006 22:16:24 +0200 Egon Frerich <e.frerich at nord-com.net>
> wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Florian,
>>
>> do you have the first line
>>
>> # -*- coding: utf8 -*-
>>
>> in your python module? And is the source encoded in UTF-8?
> 
> huh? what has the source encoding to do with how unicode strings
> are encoded on the output side?
> 
> -aj
> 


If you put Umlauts in your module (here: title = u"Abkürzung",) and your
editor put the Umlaut from the keyboard in the encoding 'cp1252' or
whatever into your module but you have said your file is utf-8 encoded
what do you think what is the output?

Egon
- --
Egon Frerich, Freudenbergstr. 16, 28213 Bremen

E-Mail: e.frerich at nord-com.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEX7MiuTzybIiyjvURAhonAJwIKEivzyV39n9VGSk8aoBSWBV0cwCfXAAp
38yTkcV6tiMbAfoz+ErBtYc=
=cW8L
-----END PGP SIGNATURE-----


More information about the Zope3-users mailing list