idf.py 打印汉字总是带上菱形问号
Posted: Tue Sep 26, 2023 5:35 am
idf.py 打印日志中汉字的总是带上菱形问号,如下所示:
I (615) wifi:security: WPA2-PSK, phy: bgn, rssi: -42
I (615) wifi:pm start, type: 1
I (615) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (625) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (1035) wifi:<ba-add>idx:0 (ifx:0, 20:76:93:46:9b:be), tid:0, ssn:0, winSize:64
I (1635) esp_netif_handlers: sta ip: 192.168.123.130, mask: 255.255.255.0, gw: 192.168.123.1
I (1635) TEST_ESP32: Got IP: 192.168.123.130
I (1635) TEST_ESP32: set event group.
Socket ���创���建���成���功Socket ���创���建���成���功I (1645) SERVICE: ���绑���定���成���功
I (1645) CLIENT: ���连���接���成���功
I (1645) SERVICE: ���监���听���成���功
I (1645) CLIENT: ���退���出
I (1655) SERVICE: ���准���备accept
尝试把当前的代码页调整为utf-8/eng也是一样的结果,win10环境,默认代码页gbk,
也没有什么大的影响,就是看着不舒服...
请问怎么调整idf.py以避免此问题呢?
I (615) wifi:security: WPA2-PSK, phy: bgn, rssi: -42
I (615) wifi:pm start, type: 1
I (615) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (625) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (1035) wifi:<ba-add>idx:0 (ifx:0, 20:76:93:46:9b:be), tid:0, ssn:0, winSize:64
I (1635) esp_netif_handlers: sta ip: 192.168.123.130, mask: 255.255.255.0, gw: 192.168.123.1
I (1635) TEST_ESP32: Got IP: 192.168.123.130
I (1635) TEST_ESP32: set event group.
Socket ���创���建���成���功Socket ���创���建���成���功I (1645) SERVICE: ���绑���定���成���功
I (1645) CLIENT: ���连���接���成���功
I (1645) SERVICE: ���监���听���成���功
I (1645) CLIENT: ���退���出
I (1655) SERVICE: ���准���备accept
尝试把当前的代码页调整为utf-8/eng也是一样的结果,win10环境,默认代码页gbk,
也没有什么大的影响,就是看着不舒服...
请问怎么调整idf.py以避免此问题呢?