EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB483374: Special characters display incorrectly with OpenJDK 11


Sergio Trejo Rodriguez

Director, Product Owner • MicroStrategy


This article explains how to fix the incorrectly displayed Japanese characters in MicroStrategy Web when using OpenJDK 11.

Symptom

In Strategy Web 2019, Japanese characters do not display correctly when using OpenJSDK 11.
 

Cause

Beginning in Java 9, the properties files are loaded in UTF-8 encoding, which used to be ISO-8859-1 (For reference). Descriptors are also stored in property files encoded in UTF-8. However, because JDK 8 and other previous versions read the resource bundles in ISO8859-1 by default, the Strategy platform explicitly re-interprets the characters by using UTF-8 encoding when it reads the descriptors.
 

Solution

To solve this issue, modify the runtime environment parameters for Tomcat. Oracle provides a way to change encoding by specifying the runtime system property 

java.util.PropertyResourceBundle.encoding=ISO-8859-1
.
As such, specify 
Djava.util.PropertyResourceBundle.encoding=ISO-8859-1
 on Tomcat VM arguments to fix the character issue. You can append this property to Java Options using Tomcat Manager.
Note: After setting the Tomcat JRE environment to JDK 11, if you encounter the error ''cannot create VM" while launching a project from eclipse, delete
 -Dwtp.deploy
 and
-Djava.endorsed.dirs
 in the Tomcat VM parameters.
Alternatively, if you don't wish to use Tomcat Manager, you can use the following approach:

  1. Create a file called 
    setenv.sh
    in <tomcat_directory>\bin.
  2. Add the following entry into the file: 
    export CATALINA_OPTS="$CATALINA_OPTS -Djava.util.PropertyResourceBundle.encoding=ISO-8859-1"

  3. Restart the Tomcat server.

Comment

0 comments

Details

Knowledge Article

Published:

June 19, 2019

Last Updated:

June 19, 2019