There is a json that is such a format that is parsed in the program:
[ "ООО Один", "ООО Два", "ООО \"Три\" (3379)" ] When you run the program in docker and try to generate the file, the following error occurs:
File "app/handlers/delegate/basic_delegate_handler.py", line 25, in __init__ self.special_list = json.loads(f.read()) File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 5: ordinal not in range(128) Without docker on the main machine, everything works. Another interesting fact is that the error says about ascii , although the file is stored in utf-8 .
The original image is using ubuntu:16.04 .
'ANSI_X3.4-1968'. How to change toUTF-8? The image offaoxis/ubuntu_flask. - faoxis