The main methods are: 1. According to the definition of H in C, the value of charh20 array can be modified according to the actual situation. 2. in C++ mode, use the cstr function of string class to convert the string type into the char type of C. ..
When the file is stored as gbk or utf-8, the Chinese character storage will always be the value of gbk. When the file is stored as utf-8 unsigned, the utf8 compilation option is added. Chinese characters are stored as utf-8 values.