3,882
社区成员
发帖
与我相关
我的任务
分享
std::string utf8_msg(boost::locale::conv::between(msg, "UTF-8", "GBK",
boost::locale::conv::skip));
std::string gbkmsg(boost::locale::conv::between(utf8_msg, "GBK", "UTF-8",
boost::locale::conv::skip));
std::ostream oss(&_write_buff);
qDebug("msgsize:%d, utf8Size:%d, GBKSIZE:%d", msg.size(), utf8_msg.size(), gbkmsg.size());