'Python fix french accents parsed as =C3=A9

In python i'm stuck with a couple of strings from french language with accents that I can't convert back to normal, e.g.:

word1 = 'install=C3=A9' # should be installé
word2 = 'transf=E9r=E9' # should be transféré
word3 = 'bient=C3=B4t'  # should be bientôt

Most documentation I read specify to read the files with some encodings='utf-8' or so, but here I'm stuck with actual strings. Is there a way to decode the strings or should I build a maximega .replace() function ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source