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