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.
Views
Replies
Total Likes
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 ?
not print correctly
Views
Replies
Total Likes
the default parameter encoding is utf-8
Views
Replies
Total Likes
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.
Is there anyway to correct it? Can logs support Chinese character?
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.
This is not Chinese character.
Views
Replies
Total Likes
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
Even after downloading and setting encoding as UTF-8 in editor, I see ???? for japanese
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies