Jump to content
Excelsior Forums

Charset defaultCharset is not same as Oracle java

Recommended Posts


Default Charset


For Oracle JVM is UTF-8

And for Excelsior Jet 9.0 is windows-1252.

The javadocs about Charset.defaultCharset() say

Returns the default charset of this Java virtual machine.

The default charset is determined during virtual-machine startup and
typically depends upon the locale and charset of the underlying
operating system.

I wouldn't expect different defaultCharset being returned

on the same machine, when running the same program, just on a different VM.

Please resolve default Charset issue if this difference is non-intentional.

In any case, this post might be helpful for someone facing similar issue in future.


Share this post

Link to post
Share on other sites

I have to make a software release, and cannot delay it any more.

For now I have fixed the issue by explicitly specifying UTF-8 at all places in my code.

I will try out the maintenance pack that you have provided, but may be not for this version of my software.

Thank you. :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now