Answer the question
In order to leave comments, you need to log in
Why does an UncodeDecodeError occur when opening a file on WSGI?
When opening open('path/to/example.json', 'r').read() a Cyrillic file, an error occurs
Everything works fine on the console
Locale
I don't understand in which direction to move to solve the problem
UPD: I would like it - solve something at the server level, without rewriting the code for opening a file with an encoding
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question