encoding - Why are UTF-8 encoded values (in language.properties) misinterpreted in Liferay 6.2? -


in liferay portal 6.2 have created portlet has language.properties file. portlet.xml :

<resource-bundle>com.test.portlet.featuretest.content.language</resource-bundle> 

the language.properties reads:

no-customer-were-found=no customer first-name=first name last-name=\u0646\u0627\u0645 \u062e\u0627\u0646\u0648\u0627\u062f\u06af\u06cc 

in view.jsp there somthing :

view.jsp

why utf characters not loaded. (??? ????????) in liferay 6.0.6 true.

any suggestions?

i believe liferay 6.1 default encoding localization property files changed java standard utf-8 - in other words language files should contain unescaped utf-8 encoded characters rather hard-to-read version you're posting above.

just convert them correct encoding, convince ide it's fine have utf-8 encoded property files , you're set.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -