I have AlmaLinux (CentOS follower) with jre 1.8.0. And Apache Karaf 4.0.4. installed in this environment. Two almost identical servers.
If I run this Java code from terminal: System.out.println(Charset.defaultCharset()); I get US-ASCII. If I run the same command from a karaf bundle, I get this on one server: UTF-8 and on the second server, I get: US-ASCII My question would be: where does Apache Karaf load the default encoding from? Or how does it set this? N.B. Locale for both servers are identical: en_US.
