Re: Encoding Problem

Jens Vagelpohl <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On May 5, 2009, at 14:27 , [email protected] wrote:

> Leider nicht so wirklich :(
>
> Ich stelle übrigens gerade fest, dass das ldap-Modul scheinbar immer  
> UTF-8
> zurückgibt. Aber aus dem LDAPUserfolder (welches ich benutze) kommen
> unterschiedliche Kodierungen heraus.
>
> Beispiele:
> LDAPUserFolder: ['Jind\xc5\x99ich B\xc3\xadlek', 'Radka Koutsk\xe1']
> ldap: ['Jind\xc5\x99ich B\xc3\xadlek', 'Radka Koutsk\xc3\xa1']
>
> Jetzt stehe ich vor dem Dilemma, dass ich unterschiedlich kodierten  
> Input
> habe und diesen normalisieren muß.

In LDAPUserFolder.utils befindet sich eine Einstellung des Ausgabe- 
Encodings, die man ändern kann. Umstellung auf UTF-8 sollte das  
Problem lösen.

Diese Einstellung gibt es nur deshalb, weil ich noch keine  
Narrensichere Einstellung unter Zope kenne, die ich dafür verwenden  
kann.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkoATzkACgkQRAx5nvEhZLIkSQCdFPzH4BtTWrn5d6SB/lX12f03
PdkAn2EK3fcXHr10csMOoZzC50QUoUp7
=KuaD
-----END PGP SIGNATURE-----


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.