Microchip
直播中

张览秀

7年用户 1149经验值
擅长:可编程逻辑 电源/新能源
私信 关注
[问答]

怎么在MDB中将编码设置为UTF-8

是否有一种方法将编码设置为MDB中的UTF-8。我在Ubuntu/PIC18/XC8编译器上运行我的测试代码,预处理失败了,在UTF-8中使用了一个无效的字节序列。一些外来字符的存在导致预处理失败。

以上来自于百度翻译


      以下为原文

    Is there a way to set the encoding to UTF-8 in MDB. I am running my test code on Ubuntu/PIC18/xc8 compiler and preprocess fails with an ArgumentError: invalid byte sequence in UTF-8. The presence of some foreign characters causes the preprocessing to fail.

回帖(2)

吴键洪

2018-10-25 17:00:53
你为什么要使用UTF-8呢?XC8不理解它。

以上来自于百度翻译


      以下为原文

    Why are you using UTF-8 at all?
XC8 doesn't understand it.
举报

张强

2018-10-25 17:17:15
我使用CEDILLN框架来运行我的代码的单元测试。将预处理器选项设置为true,以嘲笑头文件给了我以下错误。在UTF 8i中无效的字节序列知道错误是因为头文件中的注释中的非标准字符而发生的,而Ruby抛出了一个错误。

以上来自于百度翻译


      以下为原文

    I am using the Ceedling framework to run my unit tests for my code. Setting the preprocessor option to true for mocking a header file gave me the following error.
rake aborted!
ArgumentError: invalid byte sequence in UTF-8
I know the error occurs because of non-standard characters in a comment in the header file and ruby throws an error.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分