Giter VIP home page Giter VIP logo

Comments (7)

mysterywolf avatar mysterywolf commented on May 27, 2024

这个是基于KEIL平台编译的,KEIL平台对UTF-8格式支持并不是很好,建议你可以将VSCODE编码格式改为GB2312。而且uCOS-III原版本身即为ANSI编码。

from rt-thread-wrapper-of-ucos-iii.

mysterywolf avatar mysterywolf commented on May 27, 2024

而且 STM32 HAL库文件以及RTT的文件都是采用ANSI编码 并非UTF-8编码。

from rt-thread-wrapper-of-ucos-iii.

mysterywolf avatar mysterywolf commented on May 27, 2024

设置GB2312可以参考 https://jingyan.baidu.com/article/5552ef4792ac5a518ffbc996.html

from rt-thread-wrapper-of-ucos-iii.

chenyingchun0312 avatar chenyingchun0312 commented on May 27, 2024

我这边使用notepadd++打开了STM32 HAL库,以及RTT的源码,好像看到的都是UTF-8呢, 另外, MDK对UTF-8编码已经可以很好的支持了呢,不过都没有关系哈,只是我个人觉得UTF-8比较通用而已 @mysterywolf

from rt-thread-wrapper-of-ucos-iii.

mysterywolf avatar mysterywolf commented on May 27, 2024

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.

mysterywolf avatar mysterywolf commented on May 27, 2024

image
如图为ucos源码采用的编码格式

from rt-thread-wrapper-of-ucos-iii.

mysterywolf avatar mysterywolf commented on May 27, 2024

image
如图为RTT源码的编码格式

from rt-thread-wrapper-of-ucos-iii.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.