Skip to content

Commit 55cb878

Browse files
committed
modify:database used to utf charset
1 parent e867721 commit 55cb878

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

XEngine_Source/StorageModule_Database/Database_File/Database_File.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,9 @@ bool CDatabase_File::Database_File_Init(DATABASE_MYSQL_CONNECTINFO *pSt_DBConnec
5353
return false;
5454
}
5555
m_nTimeMonth = nTimeDay;
56-
#ifdef _WINDOWS
57-
LPCXSTR lpszStrCharset = _X("gbk");
58-
#else
59-
LPCXSTR lpszStrCharset = _X("utf8");
60-
#endif
6156
//连接数据库
6257
_tcsxcpy(pSt_DBConnector->tszDBName, _X("XEngine_Storage"));
63-
if (!DataBase_MySQL_Connect(&xhDBSQL, pSt_DBConnector, 5, true, lpszStrCharset))
58+
if (!DataBase_MySQL_Connect(&xhDBSQL, pSt_DBConnector, 5, true, _X("utf8")))
6459
{
6560
Database_IsErrorOccur = true;
6661
Database_dwErrorCode = DataBase_GetLastError();

0 commit comments

Comments
 (0)