boost 中文编码转换


Lstring CHanderHttp::CircleDesc(Lint nCurCircle, Lint nMaxCircle,Lint usercount)
{
std::stringstream ss;
if (nMaxCircle == ONE_ROUND_MAXCIRCLE)
{
ss << "局数:" << nCurCircle << "/" << usercount << "圈";
}
else
{
ss << "局数:" << nCurCircle << "/" << nMaxCircle;
}
string result = boost::locale::conv::between(ss.str(), "UTF-8", "GBK");

return std::move(result);
}

posted on 2018-05-07 11:35  zyz913614263  阅读(1533)  评论(0编辑  收藏  举报

导航