Unicode HOWTO: http://docs.python.org/howto/unicode.html
Convert Unicode to ASCII without errors: http://stackoverflow.com/questions/2365 ... out-errors
2. Example
Source: http://pyscripter.blogspot.com/2012/02/ ... otcha.htmlConsider the following executed in python’s 2.7 interactive interpreter:Bizarre? Not if you consider that an ansi string has no way of knowing its encoding. Of course it could try to use the default encoding, but clearly it doesn’t. Python’s str.lower() does not convert non-ascii characters. See also a related question at Stackoverflow.Code: Select all
>>> s = u'Ω' >>> se = s.encode("mbcs") >>> print s, se Ω Ω >>> s == se True >>> print s.lower(), se.lower() ω Ω >>> s.lower() == se.lower() False
How can I do Unicode uppercase? http://stackoverflow.com/questions/7275 ... -uppercase