请问 ESP-ADF的 源文件是什么什么格式的编码?

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

请问 ESP-ADF的 源文件是什么什么格式的编码?

Postby mkseven32 » Mon Jul 30, 2018 12:53 am

请问 大家, 我使用source insight 导入 ESP32-ADF的 SDK, 发现中文字体显示乱码,请问 ESP-ADF的 源文件是什么什么格式的编码?

hi does anybody know what is coded format of ESP32-ADF files, while i import the SDK into Source Insight, the chinese part always be digital gibberish~~~

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

Re: 请问 ESP-ADF的 源文件是什么什么格式的编码?

Postby ESP_Sprite » Mon Jul 30, 2018 1:07 am

ESP-ADF is partially delivered as compiled code (not open-source); you shouldn't open these files in your editoe.

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

Re: 请问 ESP-ADF的 源文件是什么什么格式的编码?

Postby mkseven32 » Mon Jul 30, 2018 1:57 am

oops, maybe i have not make it clearly!

what i have mean is the file default encoding !

the chinese txt in the c file is showing messy ~~~~like the below picture

so what the default encode should i chose for showing the chinese ?
Attachments
2.png
2.png (14.41 KiB) Viewed 9408 times
1.png
1.png (57.09 KiB) Viewed 9408 times

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: 请问 ESP-ADF的 源文件是什么什么格式的编码?

Postby ESP_igrr » Mon Jul 30, 2018 5:37 am

https://github.com/espressif/esp-adf/bl ... _example.c and other source files are in UTF-8 (without BOM) encoding.

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

Re: 请问 ESP-ADF的 源文件是什么什么格式的编码?

Postby mkseven32 » Mon Jul 30, 2018 6:53 am

thanks !

maybe source insight 4.0 do not support UTF8 without BOM!

I always set file encode as UTF8 without BOM, but it always shows as messy code !

it seems that it is the problem of the software!

Who is online

Users browsing this forum: No registered users and 20 guests