AEM 6.5.9 Chinese texts are garbled characters ??? in error log | Community
Skip to main content
Level 4
June 17, 2024

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

  • June 17, 2024
  • 2 replies
  • 1759 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

h_kataria
Community Advisor
Community Advisor
June 17, 2024

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 ? 

 

Johann_LuAuthor
Level 4
June 18, 2024

not print correctly

MukeshYadav_
Community Advisor
Community Advisor
June 17, 2024

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:-

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

 

Hope this help.

Johann_LuAuthor
Level 4
June 18, 2024

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

MukeshYadav_
Community Advisor
Community Advisor
June 25, 2024

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

 

Thanks.