unicode 和 utf-8编码问题
如题。
假设我现在要向sqlite数据库存入下面的内容:
typedef struct Mess4DBLocal
{
string Time;
int Level, line;
string accountid, account, Orgid, Orgcode;
string lmei, mobile, action, info;
string moduleStr, functionStr;
}Mess4DBLocal;
如何实现存入的数据都是UTF-8编码的?
转为char就可以了吗???
我现在是unicode编码。
求各位大神指导。