Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

AEM 6.5.9 Chinese texts are garbled characters ??? in error log

Avatar

Level 4

I have Chinese content in logs. But I cannot read it, it likes ????. Could anyone help how to read Chine texts in AEM in log. However English text is working fine.

8 Replies

Avatar

Level 7

Is it just not printing correctly in log file or not rendering properly as well ? It must be some character encoding issue. 
Can you check what is configured as default parameter encoding in Sling request parameter handling ? 

h_kataria_0-1718617663983.png

 

Avatar

Level 5

Hi @Johann_Lu ,

You can open error.log file in some editor which support these Chinese text instead of using AEM log console.

These text are not readable in AEM console but same file's text is readable in other application/editor.

PFA for reference.

AEM console log:-

aem-console-text.png

Same error.log file in Text editor:-(able to read the text properly)

texteditor.png

 

Hope this help.

Avatar

Level 4

Is there anyway to correct it? Can logs support Chinese character?

Avatar

Level 5

Hi @Johann_Lu ,

http://localhost:6502/system/console/slinglog/tailer.txt?tail=10000&grep=*&name=%2Flogs%2FyourLogFileName.log console display ?????  instead of chinese characters

 

However I am able to see chinese character in below AEM console

http://localhost:6502/system/console/status-slinglogs

In this page you can do ctrl+F(search the desired file ( you log file name )or text to easily navigate to your message)

PFA

slinglogfile.png

 

Thanks.

Avatar

Level 5

Ohh yes,Since it was better than ????????, I missed it as I don't know chinese. However if we download as zip and open in any other editor we are able to see chinese character as work around

Untitled.png