Chinese garbled characters in RC files in C ++

Source: Internet
Author: User

Vs project filesCodeAll are Chinese, but all Chinese characters are garbled when you view the string file. After a long time of confusion, I finally found a solution:

Find the RC file (resource file) in the project, change the language 9 and 1 to 4, 2, codePage (1252) to codePage (936), and # include "afxres. RC "changed to # include" L. CHS \ afxres. RC "; put" afxres. RC "changed to" L. CHS \ afxres. RC ", where the data may be different based on different text codes. In this example, the data is in English and changed to Chinese.

This solution solves my problem. There is still a solution on the Internet prompt, I have not tried it; By the way, it is also pasted up:

you can find appwzchs on the vc6 installation disc. DLL file (also click 6.0.8168.020.appwzchs.zip can be downloaded from this directory ), export to
C: \ Program Files \ Microsoft Visual Studio \ common \ msdev98 \ bin \ ide. The exact location depends on your Visual Studio installation directory. In this way, you can use the MFC Appwizard to create a project. In the first step, you can select Simplified Chinese and write Chinese on the interface of the Program , then the execution will be fine.
If the menu, dialog box, string, and other resources in your project are not generated by Appwizard, it is manually added. You must ensure that the language option of the resource is Chinese (P. r.c)

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.