About
file encoding in Java
Management
Default
the default one is defined by the OS:
- locale on Linux
Set
To define the code page to the JVM, you use the following command option:
java -Dfile.encoding = UTF8
javac -Dfile.encoding = UTF8
Support
error: unmappable character for encoding ASCII
You need to set your encoding to unicode.
- In linux: the default one is defined Linux - locale (LANG, LC environment variable)
- In docker: locale environment variable