(Apr-05-2021, 05:58 AM)supuflounder Wrote: It is not stored as you want it; it is stored in a version of UTF-8 encoding that uses \u to specify the character. It is up to you to provide a way to translate the \u codes to the actual Unicode characters. To do this, you have to make sure that Unicode is supported in the internal character set of strings. The external rendering requires that the encoding be supported, or that you convert it yourself. So you have to replace the characters \u00e9 with the character whose code is Unicode 00e9. Now, you can make a special case, because \u00XX is equivalent to XX, so even if your strings are only 8-bit strings, you could replace the sequece \u00XX with the character whose code is XX, but that only works for the special case of \u00, and is not a general scheme.
The problem here is that did not use
response.json()
.
response.text
is the wrong way here and with that can get all kind of Unicode encoding problems