[Python-de] lokalisierte String-Methoden?
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Die Nov 22 12:39:11 CET 2005
Henning.Ramm at mediapro-gmbh.de schrieb:
>>> Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit
>> (Intel)] on win32
>>> .>>> print 'ölwännchen'.upper()
>>> öLWäNNCHEN
>>> Das gleiche mit Python 2.4.1 auf Win32.
>> Warum benutzt du keine Unicode-Strings?
>
> Weil es auch nicht hilft:
>
>>>> s = u'ölwännchen'
>>>> print s, s.upper()
> ölwännchen öLWäNNCHEN
Doch noch was:
http://starship.python.net/pipermail/python-de/2005q2/006695.html
Scheinst nicht der einzige mit diesem Problem zu sein.
PEP 261 (von 2001) schreibt:
Windows builds will be narrow for a while based on the fact that
there have been few requests for wide characters, those requests
are mostly from hard-core programmers with the ability to buy
their own Python and Windows itself is strongly biased towards
16-bit characters.
http://www.python.org/peps/pep-0261.html
Ist also vielleicht wirklich ein Nur-Windows-Problem.
Stefan