German Umlaut Characters are not shown corectly
search cancel

German Umlaut Characters are not shown corectly

book

Article ID: 371393

calendar_today

Updated On:

Products

CA Harvest Software Change Manager

Issue/Introduction

After upgrading to Harvest 14.5, German Umlaut Characters are not shown correctly.

Environment

Harvest 14.5

All Supported Windows Operating Systems

Resolution

When Tomcat starts, the JVM will first apply the options from JAVA_TOOL_OPTIONS, setting file.encoding to UTF-8.

The JVM might then ignore or override the file.encoding setting from CATALINA_OPTS.

Please perform the below steps:

1.  Locate the Tomcat Installation Directory.  This typically contains the bin folder with startup scripts.

2.  Create or Edit setenv.bat file

In the bin directory of the Tomcat installation, create a file named setenv.bat if it does not already exist. This file is used to set environment variables for Tomcat on Windows.

The full path might look like this: C:\Program Files\Tomcat\bin\setenv.bat.

3.  Set CATALINA_OPTS by overrriding JAVA_TOOLS_OPTIONS in setenv.bat:

set "JAVA_TOOLS_OPTIONS=-Dfile.encoding=Cp1252"

set "CATALINA_OPTS=-Dfile.encoding=Cp1252"

4.  Save the setenv.bat file after making the changes.

5.  Go to CATALINA_HOME\conf folder and open web.xml

6.  Comment  the below two lines:

<request-character-encoding>UTF-8</request-character-encoding>
<response-character-encoding>UTF-8</response-character-encoding>    

7.  Restart Tomcat Service

Additional Information

Best Practices Usage Recommendation:

If we have multiple applications on the same machine using different Java options then we need to segregate the application startup configuration options.

This is completely dependent on the customer environment and it’s not application specific code issue.