Highlighted

Translated text is replaced with ??? in java

Vijay_Manoharan

10-09-2018

I have a requirement to retrieve list of AEM pages and its properties. So I'm doing it through SQL query in java to retrieve. Everything is coming fine except a single property which has translated text. Property text is always been replaced with ??? instead of the language text. That property is a richtext field in AEM dialog.

Do I need to add something in query to retrieve the translated(language) text as it is?

Please suggest

Thanks in advance..

Replies

Highlighted
Highlighted

Arun_Patidar

MVP

10-09-2018

Hi,

It seems in java when you are reading property value it is not in UTF-8.

You need to read value in UTF-8 and need to encode so that browser can render.

Highlighted

Vijay_Manoharan

14-09-2018

In author and publish its coming fine. Only in dispatcher , the Japanese text is getting replaced with special characters. Is there something I need to add in dispatcher file?