Page 1 of 1

LOGs output in Chinese

Posted: Thu Jan 25, 2024 9:02 pm
by PereTGN
Hello

I'm trying to log some events via ESP_LOGI API and for some reason the output is in chinese (see attached output_ch.png file below).

First I saw the output in chinese so i did some researched on the net about this issue and i found that
going to menuconfig/Log output chapter from "Command palette" and selecting verbose on "Default log verbosity" parameter to see all logs events might fix the issue so i gave it go and it did work( see attached output_en.png file below ) but then i just wanted to make sure that this was the issue so i set "Default log verbosity" parameter back to info(as it was initially) and yes the output was in chinese again so then i changed it to verbose again but this time the output was still in chinese.

can anyone help with this?

By the way, I'm using visual studio code with the ESP-IDF( ESP-IDF v5.1.2-dirty) extension installed.

Regards

Re: LOGs output in Chinese

Posted: Fri Jan 26, 2024 5:04 am
by ESP_Sprite
That's actually Japanese, not Chinese, as far as I can tell. I think at some point in time, your program outputs some sequence of unprintable characters making your terminal program think the output is shift-JIS or something and displays it as such.

Re: LOGs output in Chinese

Posted: Fri Mar 01, 2024 2:45 am
by kevintl1998
Changing the out to Shift-JIS fixed this issue for me.