boost 编码转换

boost 编码转换:

#include <boost/locale.hpp>

boost::locale::conv::to_utf<char>("GBK字串","GBK")

string source = "....";
string s = boost::locale::conv::between( source, "UTF-8", "BIG5" );



ref: http://blog.csdn.net/gong_xucheng/article/details/25957795

你可能感兴趣的:(boost 编码转换)