wu

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月10日

摘要: #include <iostream> #include <string> #include <errno.h> #include <iconv.h> using namespace std; //Linux下 GB2312和UTF8转换接口 class CUtilTools { public: CUtilTools(){}; ~CUtilTools(){}; //iInLen的长度不包括\0,应该用strlen。返回值是处理后的sOut长度 static int Utf8ToGb2312(char *sOut, int iMaxOutLen,. 阅读全文
posted @ 2012-03-10 16:23 butterflydog 阅读(643) 评论(0) 推荐(0) 编辑