Warning: # 870-d: Invalid multibyte character Sequence

Source: Internet
Author: User

Warning: # 870-d: Invalid multibyte character Sequence

Warning: # 870-d: Invalid multibyte character Sequence
Const unsigned char mm [] = {"People's Republic of China "};
Mdk3.40 version with alarm, C-MDK 3.70 normal
Warning Message: Invalid multibyte character sequence is an invalid multi-byte string.
This means that your compiler does not support multi-byte characters, that is, it does not support non-ASCII characters.
There is no problem when using the string format, which is related to the compiler version.
For example
Char * STR;
STR = "I am a Chinese string ";
Just ignore it. This is the function of the compiler. Foreigners use less than 127 ASCII codes, and Chinese users use more than 127 ASCII codes. The Compiler writes ASCII codes to foreigners and naturally assumes that all characters in the world are ASCII codes, if you see such "illegal" characters, you may not jump up immediately to tell you how they are designed to be "humanized.
In old-fashioned terminals, the data (Standard ASCII Code) is only 7 characters long and exceeds 127 of the Code. It is not displayed, and transmission may fail. That warning actually meant to tell you.
I turned off the warning output in the C option, and I was bored.
Keil warning: Invalid multibyte character Sequence
// # Pragma diag_suppress 77,550,129
# Pragma diag_suppress 870

Solve the problem by using this method. I have already succeeded in the experiment found in the example of the dog Keil.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.