convert Unicode to lower/uppercase?
jallan at smrtytrek.com
Sun Sep 21 19:40:48 CEST 2003
Peter Otten <__peter__ at web.de> wrote in message news:<bkepb9$6a4$01$1 at news.t-online.com>...
> nospam wrote:
> > Has someone got a Python routine or module which converts Unicode
> > strings to lowercase (or uppercase)?
> Toiled and came up with:
> >>> print u"abcäöüß".upper()
> >>> u"ABCÄÖÜ".lower()
But that really doesn't work properly. According to Unicode specs and
German usage the uppercase of "ß" is actually "SS", that is the single
character "ß" should uppercase to two characters.
More information about the Python-list