SOURCE Insight Chinese Comment garbled solution

Source: Internet
Author: User

Because UTF-8 encoding is used on Linux, source Insight does not support utf-8, and when reading Linux project source code using source insight, there are often garbled Chinese characters. The traditional solution is to use Notepad to open the code file, save as ANSI encoded file, when the need to convert the file is very small when the use of this method is very convenient, when the project is large, more files, a file conversion seems very cumbersome.

This project uses the C + + code, the programming way realizes the transcoding function, transforms the UTF-8 encoded file to the source Insight recognizable Chinese gb2312 code. Perfect solution Source Insight Chinese Comment garbled problem.

Mainly has the following characteristics: 1. Convert files for the current directory and subdirectories. 2. System default conversion txt, CPP, H, Java, HPP, php six common file types. The user can set one or more of the six files to be converted, at which time the system default configuration is invalidated. When a user configures a file type that is no longer among these six types, no conversion is made.

VS2013 can open the project directly, if the version of the new project directly after the copy to add the source files.


GitHub Address: https://github.com/chaoren-fly/utf8-to-gb2312


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.