16,471
社区成员
发帖
与我相关
我的任务
分享
const char *pNameUtf8 = CStaticData::Instance()->GetWord(1);
const char *pName = "NI你";
char sql[1024] = {0}, sqlUtf8[1024] = {0};
sprintf_s(sql, sizeof(sql), "select 1 from table_test where name = \'%s\'", pName);
sprintf_s(sqlUtf8, sizeof(sqlUtf8), "select 1 from table_test where name = \'%s\'", pNameUtf8);