convert Unicode to lower/uppercase?

Neil Hodgson nhodgson at bigpond.net.au
Thu Sep 25 17:46:04 EDT 2003


Me:

> for an illustrative but incorrect example
> "ca~non".upper() -> {'portugal':'CANON','spain':'CA~NON'}),

   For a real example from the Microsoft web site, uppercasing "indigo"
(u'\u0069\u006e\u0064\u0069\u0067\u006f') gives "INDIGO"
(u'\u0049\u004e\u0044\u0049\u0047\u004f') for English-US and similar but
with dots above the 'I's for Turkish:
(u'\u0130\u004e\u0044\u0130\u0047\u004f').

   Neil






More information about the Python-list mailing list