mirror of
https://github.com/tars-node/tars2node.git
synced 2024-03-22 13:10:56 +08:00
version: 20190516
This commit is contained in:
parent
e5d3cc184d
commit
24c9b8c988
|
@ -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)
|
||||||
|
|
BIN
build/tars2node
BIN
build/tars2node
Binary file not shown.
|
@ -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 (...) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user