Re: Umlauteproblem

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05.02.2009 19:19 Uhr, Vladislav Vorobiev wrote:
> Halo,
> 
>> Mag sein, aber wenn der Webbrowser es als Menüeintrag anzeigt, sieht's nicht
>> mehr so perfekt aus. ;-)
> 
> ich kann mich tatsächlich noch erinnern wo ein Python Script auf die Anweisung
> 
> a=['ä', 'ü','ß']
> print a
> return printed
> 
> mit ['ä', 'ü','ß'] reagierte, nun ist es schon sein Ewigkeiten
> ['\xc3\xa4', '\xc3\xbc', '\xc3\x9f'](bei mir UTF8). Die Frage ist
> berechtigt, der Grund liegt aber wahrscheinlich in der Falschen
> Anwendung der Listen.

Was willst Du uns mit dieser Aussage sagen?
Beim Print-en einer Liste (allg. Sequenz) wird für jedes Element der
Sequenz das Ergebnis des jeweiligen __repr__() Aufrufs verwendet - nicht
der von __str__.

>>> print 'ä'.__str__()
ä
>>> print 'ä'.__repr__()
'\xe4'


- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkmLL4UACgkQCJIWIbr9KYwp+QCfXe/GMrNmyawzDOcdkZXrAHjR
3wcAn20VPLwu4DDgQaZP0f9QDgzOK0/q
=gZ0Q
-----END PGP SIGNATURE-----



_______________________________________________
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.