|ARM Technical Support Knowledge Articles|
Applies to: General Topics
Information in this article applies to:
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.
code char RussianString = "??? ????";
Why does this problem exist and how can I avoid this behavior?
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.
Article last edited on: 2004-05-10 15:34:11
Did you find this article helpful? Yes No
How can we improve this article?