Friday, July 29, 2016

AEM6 | Swedish/ Non English Characters not displaying on page

If you are facing issue with display of Non-English characters in your site/ page then you can check following things-


1. Change Request Parameter Encoding 

a. Go to OSGi configuration console (http://localhost:4502/system/console/configMgr) and search for "Apache Sling Request Parameter handling" Service
b. Change Encoding to "UTF-8"



c. If changing this does not work then try restarting AEM after this change.
d. In worst case, you can apply the encoding to the property directly:
       
       new String(str.getBytes("ISO-8859-1"),"UTF-8"); Where str is the property string

2. Set Character Encoding to "UTF-8" in Ajax and Servlets.

No comments:

Post a Comment

CDN | Clearing Cloudflare cache

In order to clear Cloudflare cache automatically via code, follow below steps: 1. Develop Custom TransportHandler Develop a custom Trans...