Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

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.

9 Replies

Avatar

Community Advisor

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

Community Advisor

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

Community Advisor

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

Community Advisor

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

 

Avatar

Level 1

Even after downloading and setting encoding as UTF-8 in editor, I see ???? for japanese