Hi It’s JVM default so using LC_ALL and other env variable. You can check the passed locales using shell:info
Regards JB > Le 28 oct. 2021 à 08:41, Andrei Petru Mura <[email protected]> a écrit : > > > 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. >
