{"id":143,"date":"2020-03-30T11:47:38","date_gmt":"2020-03-30T11:47:38","guid":{"rendered":"http:\/\/www.matez.de\/?p=143"},"modified":"2020-03-30T11:47:38","modified_gmt":"2020-03-30T11:47:38","slug":"encoding-in-jdk-openj9-docker-images","status":"publish","type":"post","link":"https:\/\/www.matez.de\/index.php\/2020\/03\/30\/encoding-in-jdk-openj9-docker-images\/","title":{"rendered":"encoding in jdk openj9 docker images"},"content":{"rendered":"\n<p>Recently I was looking into encoding problems and I was really surprised to find this:<\/p>\n\n\n\n<p><em>docker run &#8211;rm adoptopenjdk\/openjdk11-openj9:jre-11.0.2.9_openj9-0.12.1-alpine java -XshowSettings 2>&amp;1 | grep encoding<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file.encoding = ANSI_X3.4-1968\nfile.encoding.pkg = sun.io\nibm.system.encoding = ANSI_X3.4-1968\nos.encoding = ANSI_X3.4-1968\nsun.io.unicode.encoding = UnicodeLittle\nsun.jnu.encoding = ANSI_X3.4-1968<\/code><\/pre>\n\n\n\n<p>Even adding environment variables like LC_ALL or LANG did not help \ud83d\ude41<\/p>\n\n\n\n<p><em>docker run &#8211;rm -e LANG=en_US.UTF-8 -e LC_ALL=en_US.UTF-8  adoptopenjdk\/openjdk11-openj9:jre-11.0.2.9_openj9-0.12.1-alpine java -XshowSettings 2>&amp;1 | grep encoding<\/em><\/p>\n\n\n\n<p>But the issue was fixed with a more recent version of the image:<\/p>\n\n\n\n<p><em>docker run &#8211;rm adoptopenjdk\/openjdk11-openj9:jre-11.0.6_10_openj9-0.18.1-alpine java -XshowSettings 2>&amp;1 | grep encoding<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file.encoding = UTF-8\nfile.encoding.pkg = sun.io\nibm.system.encoding = UTF-8\nos.encoding = UTF-8\nsun.io.unicode.encoding = UnicodeLittle\nsun.jnu.encoding = UTF-8<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Be aware of this insides of the images you use!<\/h3>\n\n\n\n<p>Happy coding <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was looking into encoding problems and I was really surprised to find this: docker run &#8211;rm adoptopenjdk\/openjdk11-openj9:jre-11.0.2.9_openj9-0.12.1-alpine java -XshowSettings 2>&amp;1 | grep encoding Even adding environment variables like LC_ALL or LANG did not help \ud83d\ude41 docker run &#8211;rm -e LANG=en_US.UTF-8 -e LC_ALL=en_US.UTF-8 adoptopenjdk\/openjdk11-openj9:jre-11.0.2.9_openj9-0.12.1-alpine java -XshowSettings 2>&amp;1 | grep encoding But the issue was &hellip; <a href=\"https:\/\/www.matez.de\/index.php\/2020\/03\/30\/encoding-in-jdk-openj9-docker-images\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;encoding in jdk openj9 docker images&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[42,44,34,43,33],"_links":{"self":[{"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/posts\/143"}],"collection":[{"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":1,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matez.de\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}