Linked Questions
23 questions linked to/from How to set the locale inside a Debian/Ubuntu Docker container?
422 votes
22 answers
577k views
Python locale error: unsupported locale setting
Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') ...
68 votes
19 answers
70k views
PIP Install Numpy throws an error "ascii codec can't decode byte 0xe2"
I have a freshly installed Ubuntu on a freshly built computer. I just installed python-pip using apt-get. Now when I try to pip install Numpy and Pandas, it gives the following error. I've seen this ...
49 votes
4 answers
39k views
What exactly is sun.jnu.encoding?
What is the purpose of the system property sun.jnu.encoding? Various fragments on the web set or report it, but I can't find a definition.
31 votes
4 answers
29k views
How to fix 'character map file `UTF-8' not found' [closed]
I'm setting up a UBI rhel8 container. I need to execute this command: localedef -f UTF-8 -i en_US en_US.UTF-8 which failed with: character map file `UTF-8' not found: No such file or directory ...
5 votes
3 answers
22k views
UTF-8 encoding not working in Docker
I'm running a Java program from within a Docker container (started with Docker Compose) and it's throwing a bunch of errors caused by UTF-8 characters (as they can't be mapped to the ASCII charset). ...
5 votes
4 answers
5k views
uWSGI / Emperor: UnicodeEncodeError: 'ascii' codec can't encode character
i have big problem with encoding on uwsgi/emeror/nginx server. My app is developed to batch excel files processing. I use latest version flask and flask-extensions and use flask-excel. My app runs ...
7 votes
4 answers
10k views
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment
I tried to deploy my flask application in a docker in ubuntu18.04, and I was using python3.5 in my pipenv. But when I run docker build -t flask ., at a step of RUN pipenv install,I got this error: ...
1 vote
4 answers
2k views
Cypress: contains().click() with or statement
the problem is that the Docker image from Cypress sets the browser language to english and some elements on the page are translated to english. It looks like it's a bug in Cypress because the browser ...
6 votes
2 answers
8k views
Python default locale (unsupported locale setting)
This seems like a weird problem, and it's causing my some heartburn, because i'm using a library that stashes the current locale, and tries to set it back to what it stashed. $ docker run --rm -it ...
11 votes
2 answers
5k views
File charset changes to binary in docker container
I have an application which listens to the external feed on hourly basis and receives the feed JSON which is a chunked transfer encoding stream, the listener to the feed write the chunk to the file, ...
8 votes
1 answer
820 views
Inconsistent string.StartsWith on different platforms
Given documentation for string.StartsWith and this snippet (targeting .net core 2.x): This method compares the value parameter to the substring at the beginning of this string that is the same ...
1 vote
1 answer
2k views
How to use localectl and timedatectl in amazon linux 2 image?
When I do it in amazon linux 2 container, it returned this issue. bash-4.2# localectl status Failed to create bus connection: No such file or directory bash-4.2# timedatectl Failed to create bus ...
1 vote
1 answer
1k views
Postgres database dump does not want to import within Docker container
My problem: When importing the database it seems (now) that the database is dropped and can then not be connected. (That did always work before. Import script seems not to be changed). The whole ...
0 votes
1 answer
1k views
How to set encoding on docker image generated by Spring boot build-image maven plugin
I've a project with spring boot 2.5.1 When I create the docker image with the following command mvn -B spring-boot:build-image -Dspring-boot.build-image.imageName=franco -DskipTests and then i run it ...
0 votes
0 answers
2k views
Date format yyyy-MM-dd Docker iis
I have a problem with the Docker on which the iis server is installed. Unfortunately, the date in my program is set in the format "MM / dd / yyyy" and I want it to be in the format "yyyy-MM-dd" How to ...