SyntaxFix
Write A Post
Hire A Developer
Questions
With Python 2, this doesn't work for non-English words in UTF-8. In this case decode('utf-8') can help:
decode('utf-8')
>>> s='????????' >>> print s.lower() ???????? >>> print s.decode('utf-8').lower() ????????