version: 20190516

This commit is contained in:
superzheng 2019-05-16 16:06:33 +08:00
parent e5d3cc184d
commit 24c9b8c988
3 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,7 @@ set(CMAKE_VERBOSE_MAKEFILE off)
# version # version
set(TARS_VERSION "1.1.0") set(TARS_VERSION "1.1.0")
set(PARSER_VERSION "${TARS_VERSION}") set(PARSER_VERSION "${TARS_VERSION}")
set(GENERATOR_VERSION "20190510") set(GENERATOR_VERSION "20190516")
# namespace # namespace
set(IDL_NAMESPACE Tars) set(IDL_NAMESPACE Tars)

Binary file not shown.

View File

@ -19,11 +19,7 @@
void CodeGenerator::makeUTF8File(const string& sFileName, const string& sFileContent) void CodeGenerator::makeUTF8File(const string& sFileName, const string& sFileContent)
{ {
try { try {
char header[3] = {(char)(0xef), (char)(0xbb), (char)(0xbf)}; string sData = TC_Encoder::gbk2utf8(sFileContent);
string sData(header, 3);
sData += TC_Encoder::gbk2utf8(sFileContent);
TC_File::save2file(sFileName, sData.c_str()); TC_File::save2file(sFileName, sData.c_str());
} catch (...) { } catch (...) {