Title page doesn't work on special characters - Python
I am trying to capitalize on a lot of strings and some of them start with utf-8 characters. The problem is they don't capitalize!
mystring = 'lucas'
mystring.capitalize() # returns 'Lucas'
mytring = 'æthelred'
mystring.capitalize() # returns 'æthelred'
It is the same with vowels containing `` ^ ¨ and symbols ð, þ, etc. What should I do to solve this problem?
I don't actually have access to the string, I get them somewhere else, in a text file ...
+3
source to share