Comments (7)
这个是基于KEIL平台编译的,KEIL平台对UTF-8格式支持并不是很好,建议你可以将VSCODE编码格式改为GB2312。而且uCOS-III原版本身即为ANSI编码。
from rt-thread-wrapper-of-ucos-iii.
而且 STM32 HAL库文件以及RTT的文件都是采用ANSI编码 并非UTF-8编码。
from rt-thread-wrapper-of-ucos-iii.
设置GB2312可以参考 https://jingyan.baidu.com/article/5552ef4792ac5a518ffbc996.html
from rt-thread-wrapper-of-ucos-iii.
我这边使用notepadd++打开了STM32 HAL库,以及RTT的源码,好像看到的都是UTF-8呢, 另外, MDK对UTF-8编码已经可以很好的支持了呢,不过都没有关系哈,只是我个人觉得UTF-8比较通用而已 @mysterywolf
from rt-thread-wrapper-of-ucos-iii.
HAL库以及RTT源码并非UTF-8编码 而是采用的是ANSI编码 只不过他们没有使用其他国家的文字,这两种编码在解码ASCII时是可以正确显示的,因此在你的vscode中即便使用utf编码也可以正确打开。你可以采用记事本查看并点击另存为,你就会发现当前的编码格式为ANSI编码格式。虽然MDK本身是支持UTF-8,但是如果MDK混合这两种编码文件可并尝试对UTF-8的文件修改后再编译的话就会出错。因为emwin的汉字就是要求采用UTF-8编码,这在实际操作过程中挺烦人的,稍微改一点UTF-8编码的文件就需要重新保存为UTF-8才可以。
from rt-thread-wrapper-of-ucos-iii.
from rt-thread-wrapper-of-ucos-iii.
from rt-thread-wrapper-of-ucos-iii.
Related Issues (3)
- 请大佬增加对UCOS-II兼容层的支持 HOT 7
- TODO HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rt-thread-wrapper-of-ucos-iii.