cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Character encoding issues in Mashup

Hanklee0518
5-Regular Member

Character encoding issues in Mashup

ThingWorx version is 8.4.
The content of the Text property of the Label component in Mashup is Chinese. After exporting to an Xml file (the encoding of the Xml file is utf-8), when viewing it with a text editor, you also see Chinese content. However, after importing the Xml file in another fresh installation of ThingWorx 8.4, the Text property of the Label in Mashup displays "设备监测", as shown below:

Hanklee0518_0-1577953795729.png

However, the Text property of this Label's Widget Properties page still displays Chinese.

Hanklee0518_2-1577954234665.png

When I position the cursor in the Text property input box and then move the cursor out of the input box (press the Tab key, or click the left mouse button anywhere), the label can display Chinese normally again.

 
 

How to solve this problem? Thanks.

 

 

5 REPLIES 5
tsaifee-2
14-Alexandrite
(To:Hanklee0518)

Hi, would it help to use a localization token as described here?: http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FComposer%2FSystem%2FLocalizationTables%2FLocalizationTables.html%23wwID0EDKTZ

 

So you input a localization token, e.g. MYAPP.CNTOKEN1 in your Chinese localization table (e.g. zh-CN). It has Token Value = Chinese Text, Reference Value = English Text. You would then select the localization token as the value for your Text property of the Label (using the Localization Toggle button). After saving, the mashup should display text in Chinese or English depending on which Localization language is at the top of the list (i.e. preferred) in the user properties (in Composer > Security > Users)

posipova
20-Turquoise
(To:Hanklee0518)

In addition to the above answer, could you please provide your tomcat JVM settings /java options?

 

Hanklee0518
5-Regular Member
(To:posipova)

JVM: 1.8.0_192

Tomcat 8.5

Java Options:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.5
-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 8.5
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf\logging.properties
-Dserver -Dd64
-XX:+UseG1GC
-Dfile.encoding=UTF-8
-Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\Thingworx\WEB-INF\extensions
-Xms5000m
-Xmx5000m
-XX:PermSize=64m
-XX:MaxPermSize=1024m

Hank, this seems to be a bug. Can you please report this as a Tech Support ticket under your or your customer license agreement  in the support.ptc.com portal?

 

slangley
23-Emerald II
(To:Hanklee0518)

Hi @Hanklee0518.

 

Have you opened a case for this issue?  If so, please provide the case number so I can track it for posting a follow up on this post.

 

Regards.

 

--Sharon

Announcements


Top Tags