LOGs output in Chinese

PereTGN
Posts: 1
Joined: Thu Jan 25, 2024 8:28 pm

LOGs output in Chinese

Postby PereTGN » Thu Jan 25, 2024 9:02 pm

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
Attachments
output_en.png
output_en.png (29.37 KiB) Viewed 859 times
output_ch.png
output_ch.png (30.95 KiB) Viewed 859 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: LOGs output in Chinese

Postby ESP_Sprite » Fri Jan 26, 2024 5:04 am

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.

kevintl1998
Posts: 1
Joined: Fri Mar 01, 2024 2:44 am

Re: LOGs output in Chinese

Postby kevintl1998 » Fri Mar 01, 2024 2:45 am

Changing the out to Shift-JIS fixed this issue for me.

Who is online

Users browsing this forum: No registered users and 120 guests