UTF-8 signature is the UTF-8 character 'ef bb bf' at the start of a .cpp .c file. When you edit a UTF-8 file with notepad, it also put the signature at the start of the file. Microsoft Visual Studio 2008 C++ compiler reads this to detect the encoding of a text file. Without this signature, a UTF-8 const string literal with chinese characters is not read correctly in Visual C++.
Please skip the 'EF BB BF' at the start of a .cpp .c file. Currently this signature causes compilation errors on GCC. Add this feature will easy the porting of WIN32 software to GCC. -- Summary: UTF-8 signature support Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dh dot liu at msa dot hinet dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40441