Relative Content

Tag Archive for pythonpython-2.7character-encodingpython-3.6django-1.11

Python – Django – Encoding UTF-8

I have a problem with text encoding.
The context: I’m working on a django 1.11, python 3.6 app (it started in python 2.7 and django < 1.11 and was upgraded later).
I have to use an API that doesn’t recognize my text when there are characters with accents (é-è-^).
The API works fine and accepts these characters when I use a script in python 3.9 (so it’s not incriminating). The API also accepts a call from my app with text without accents. So the payload and headers are not incriminated either.