Py 3.3, unicode / upper()

Christian Heimes christian at python.org
Wed Dec 19 15:52:23 CET 2012


Am 19.12.2012 15:23, schrieb wxjmfauth at gmail.com:
> But, this is not the problem.
> I was suprised to discover this:
> 
>>>> 'Straße'.upper()
> 'STRASSE'
> 
> I really, really do not know what I should think about that.
> (It is a complex subject.) And the real question is why?

It's correct. LATIN SMALL LETTER SHARP S doesn't have an upper case
form. However the unicode database specifies an upper case mapping from
ß to SS. http://codepoints.net/U+00DF

Christian



More information about the Python-list mailing list