I receive a text file, but some characters on it are not correct.
One example is the text below:
Apresentação/ divulgação do curso
But the correct text is
Apresentação/ divulgação do curso
I use the Php function utf8_decode and it works, see example below
echo utf8_decode("Apresentação/ divulgação do curso");
result Apresentação/ divulgação do curso
but I can't make it work in Python, I try to use
my_str = 'Apresentação/ divulgação do curso'
print( my_str.decode("utf-8") )
But I got the following error:
AttributeError: 'str' object has no attribute 'decode'
How I can make this work in Python?