I have this:
dic = {'ál':1, 'él':2}
string = "ÉL"
number=dic[string.lower()]
and it's giving me a KeyError.
I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not affecting the É at all because some weird Python 2.x encoding issue. Can somebody help me please? I can't tell users to write always in lowercase.