Qtcreator (Visual C + + compiler) Compile-time prompt warning C4819 solution

Source: Internet
Author: User

Similar warnings often appear when compiling programs with the Qtcreator + Visual C + + compiler.

Warning C4819: The file contains characters that cannot be represented in the current code page (936). Please save the file in Unicode format to prevent data loss

This warning can be ignored, but compiling a larger project often prompts dozens of of these warnings, which is annoying.

In fact, the solution is also very simple, save our code as a utf-8 with the BOM format file can be. Qtcreator save file is in utf-8 format by default, but without BOM.
We can modify the settings so that it keeps the BOM every time it is saved. Setup methods such as:

Qtcreator (Visual C + + compiler) Compile-time prompt warning C4819 solution

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.