Re: Encoding Problem

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>

On 30.04.2009 15:01 Uhr, Andreas Jung wrote:
> On 30.04.2009 14:40 Uhr, [email protected] wrote:
>   
>> Liebe Liste,
>>
>> ich bekomme für den Namen eines Users den folgenden String von meinem
>> LDAP-Server geliefert: 'Rubo\xc5\xa1 Lo\xc5\xa1tejnsk\xc3\xbd'
>>
>> Der Name des Users lautet Ruboš Loštejnský (hoffe das kommt korrekt
>> bei Euch an :D). \xc5\xa1 entspricht also der HTML-Entity &scaron;
>> oder dem Unicode-Character LATIN SMALL LETTER S WITH CARON.
>>
>> Leider bekomme ich es nicht hin, den Namen korrekt auszugeben. Kann
>> mir jemand einen Tipp geben? Danke!
>>
>>     
> Korrekt ausgeben? Wo genau?
>
> \xc5\xa1 is "normales" UTF-8 - wo ist genau das Problem?


Natürlich musst Du bei der Ausgabe im Browser dafür sorgen, dass der
Content-Type Header korrekt gesetzt wird und UTF-8 als Charset
mitgeschickt wird. Ansonsten zeigt der Browser den Kram einem geratenen
Encoding an.

Andreas



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 331 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
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.