Docker - Encoding (Locale)

Card Puncher Data Processing

About

In docker linux, in order to set your default encoding, you need to set your locale via environment variable in your dockerfile

Example

Ubuntu

  • Check/ List the locales
locale -a
C
C.UTF-8
POSIX

  • If there is no locale, install them
apt-get install -y locales
# if you really want to have all locales :)
# apt-get install -y locales-all
  • Then in docker file
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8





Discover More
Java Conceptuel Diagram
Java - Encoding

file encoding in Java the default one is defined by the OS: locale on Linux To define the code page to the JVM, you use the following command option: ASCII You need to set your encoding...



Share this page:
Follow us:
Task Runner