I am consuming a text response from a third party API. This text is in an encoding which is unknown to me. I consume the text in python3 and want to change the encoding into UTF-8.
This is an example of the contents I get:
Danke
"Träume groß"
🙌ðŸ¼
Super Idee!!!
I was able to get the messed up characters readable by doing the following manually:
- Open new document in Notepad
- Via the Encoding menu switch the encoding of the document to
ANSI
- Paste the contents
- Again use the Encoding menu, this time switch to
UTF-8
- Now the text is properly legible like below
Correct content:
Danke
"Träume groß"