Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Issue when implementing localisation using field values

SA-19218

Summary



User is not able to get localized text for below languages from the localized field values using the function : getLocalizedText( text , refproperty)
1) Chinese ( simplified) . 2 ) Japanese . 3) Korean . 4 ) Russian . 5) Arabic

They are getting inverted question mark (¿¿¿¿) texts for the mentioned languages on using getLocalizedText function.


Error Messages



No error message.


Steps to Reproduce



1) Set the locale of Thread to Chinese using below java method
tools.getThread().setLocaleName(PRThread.LOCALE_DEFAULT, zh);
2) Create a field value in localisation specific ruleset ( <ruleset>_zh).
3) Invoke getLocalizedText( text , refproperty) function to get the value from the field value and set it to a property.
4) Check the value in the property.


Root Cause



An issue in the custom application code or rules.

The character set of the development database is  
WE8MSWIN1252 which does not support the multibyte characters and hence the Chinese character are getting saved as (¿¿¿¿)  for the field values which is a column in the pr4_fieldvalue table. 

Resolution



Perform the following local-change:

Change the 
 character set of the database as per the production environment which is AL32UTF8 fixes the issue.

 

Suggest Edit

Published February 9, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us