Linux Operating System (MOSC)

MOSC Banner

Java/Tomcat defaulting To ansi_x3.4-1968 Despite The System Default Encoding Being UTF-8

Hi Everyone,

We are running java/tomcat on our cloud systems(AWS Linux).Recently we noticed every time when we launch a new instance we can see java/tomcat file.encoding and sun.jnu.encoding parameter is set to ANSI_X3.4-1968.

But after the instance reboot the parameters are set to UTF-8.Did anyone faced this issue before?

I reached out to AWS but however they are not clear how the Java or Tomcat determines the variables' file.encoding and sun.jnu.encoding values initially if they are not specified in the Tomcat or Java configuration.

From my understanding if the values are not specified in the config it will inherit from OS.But I couldn't see encoding values set to ANSI_X3.4-1968 from OS perspective.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center