Hi
I belive so too that, python is setting the 'conf_file' to unicode.
As a result, I set the locale of my Docker container to UTF-8, as follows ,
RUN locale-gen en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
Which changes the container environment as such,
"Env": [ "PATH=/opt/python-code/extra-scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LC_ALL=en_AU.UTF-8", "LANG=en_AU.UTF-8", "LANGUAGE=en_AU.UTF-8", "PYTHONPATH=/opt/python-code", "PERL5LIB=/usr/local/perl" ],
I also include the following in my Dockerfile
ENV PERL_UNICODE "SD"
I was of the belief that this would enable perl to read the unicode
But on running, it still generates the same error.
I am using python 2.7.12 and perl 5.22
Cheers
|