Sometimes a Java based app running in a container requires UTF8 encoding. Not all available images enable that by default, this can be fixed by adding one line to your Dockerfile setting the JAVA_TOOL_OPTIONS environment variable:
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8
This also works outside containers of course.
No comments:
Post a Comment
With great power comes great responsibility