Warning 1 warning c4819: The file contains characters that cannot be expressed in the current Code Page (936)

Source: Internet
Author: User

Warning c4819: The file contains a character that can ot be represented in the current Code Page (936). Save the file in unicode format to prevent data loss.

This file cannot be included in the currentCodeTo prevent data loss.

In general, this warning has no effect. Methods to remove this warning include:

(1) convert the code file to unicode format;

(2) in project-> properties-> Configuration properties-> C/C ++-> advance's disable specific warnings, add the corresponding warning number: 4819;

(3) locate a file that does not conform to the unicode format, and add the following statement at the beginning of the file:

# Pragma warning (Disable: 4819)

(4) which file has this warning error? Open it and use the search and replace function of vs2005. Open the option that allows regular expressions, select the current window, and replace/n with/n. Then, the world is clean. Cause: the searched/N is a cross-platform carriage return. The replaced/N is the carriage return of the current Code Page.
In the original article (4), I directly overwrote the error message ~ Or use Notepad ++ to convert the encoding format ..... Try again later (4)

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.