boost 编码转换

来源:互联网 发布:js设置select选中的值 编辑:程序博客网 时间:2024/05/29 13:16

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

原创粉丝点击