Don’t you have the full JVM command args ? Else use jconsole to get it for 
instance.

Regards
JB

> Le 28 oct. 2021 à 11:17, Andrei Petru Mura <[email protected]> a écrit :
> 
> Hi Jean,
> 
> Using shell:info displays no info related to locales.
> 
> Andrei
> 
> On Thu, Oct 28, 2021 at 11:54 AM JB Onofré <[email protected]> wrote:
> 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.
> > 
> 

Reply via email to