keil c51 v9.50a 0xfd液晶字符修正???????????

2020-01-12 17:24发布

请问大侠们的keil c51 v9.50a 0xfd修正这个是怎么弄好的 {MOD}????????使用以前的修正0xfd的工具没有效果了。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
23条回答
magiczero
1楼-- · 2020-01-13 12:41
下面的是来自Keil官方的解决方法

http://www.keil.com/support/docs/2618.htm

GENERAL: COMPILER IGNORES 0XFD, 0XFE, 0XFF VALUES IN STRINGS

Information in this article applies to:

    * C166 Compiler All Versions
    * Cx51 Compiler All Versions
    * C251 Compiler All Versions

QUESTION

I have a problem with the interpretation of Russian strings in the Keil C51 compiler. Some Russian characters are using the encoding 0xFD. It looks like this encoding is ignored by the compiler and is not included in the program code.

Example:

code char RussianString[] = "??? ????";

Why does this problem exist and how can I avoid this behavior?
ANSWER

The character encodings 0xFD, 0xFE, and 0xFF are used internally by the C compiler. The ANSI standard only requires support for ASCII characters in the range 0x00 - 0x7F.

You may insert these characters by using HEX encodings in the string as follows:

code char RussianString[] = "My Text" "xFD";

A simple text replacement which replaces all 0xFD characters with the string '" "xFD' should do the job.

magiczero
2楼-- · 2020-01-13 15:13
 精彩回答 2  元偷偷看……
hamipeter
3楼-- · 2020-01-13 17:11
谢谢分享
Tliang
4楼-- · 2020-01-13 17:55
mark                    
qq635274216
5楼-- · 2020-01-13 19:15
今天遇到这个问题折腾了一天,原来这里就有
qinchl
6楼-- · 2020-01-13 20:43
还是不太明白什么意思,哪位大大能否解释直白一些,谢谢。
code char RussianString[] = "My Text" "xFD";
A simple text replacement which replaces all 0xFD characters with the string '" "xFD' should do the job.

一周热门 更多>