Docker Community Forums

Share and learn in the Docker community.

Perl to utf8 dockerfile


(Iaarya) #1

Hi Everyone,

I working with windows10 for docker.

I have a dockerfile which contains Ubuntu, python, git and nipype.

I have a certain algorithm written in python which is in UTF-8.
I known by default Docker contains perl 5.

My algorithm is interfacing with python code and perl code.
But I am getting string error as perl is unable to read the code.
The most likely case that it is not set to UTF-8.
I have already tried changing the docker locale using,

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

But I am still getting error.

Can some one suggest me how can I set perl to utf8 in docker file, and check if this is correctly done.

Kind regards