utf8转Unicode
来源:互联网 发布:淘宝运营简历范文 编辑:程序博客网 时间:2024/06/06 14:20
CString UTF8ToUnicode(char* UTF8)
{
DWORD dwUnicodeLen;//转换后Unicode的长度
TCHAR *pwText;//保存Unicode的指针
CString strUnicode;//返回值
//获得转换后的长度,并分配内存
dwUnicodeLen = MultiByteToWideChar(CP_UTF8,0,UTF8,-1,NULL,0);
pwText = new TCHAR[dwUnicodeLen];
if (!pwText)
{
return strUnicode;
}
//转为Unicode
MultiByteToWideChar(CP_UTF8,0,UTF8,-1,pwText,dwUnicodeLen);
//转为CString
strUnicode.Format(_T("%s"),pwText);
//清除内存
delete []pwText;
//返回转换好的Unicode字串
return strUnicode;
}
- Unicode转UTF8
- utf8 转 unicode
- UTF8转unicode
- UNICODE 转 UTF8
- utf8转unicode
- unicode转utf8
- utf8转unicode
- utf8转unicode
- PHP UNICODE 转 UTF8
- unicode转UTF8
- unicode 转 utf8
- UTF8转Unicode
- unicode码表 及 unicode转utf8规则
- unicode码表 及 unicode转utf8规则
- unicode码表 及 unicode转utf8规则
- Asc转UTF8及Unicode
- unicode 转 utf8, WideCharToMultiByte MultiByteToWideChar
- UTF8 转 UNICODE GBK ANSI
- Install Adobe Air on 64-bit Ubuntu 12.04 Precise Pangolin
- C#模板类
- Hibernate 之 查询
- POI Excel 13 添加图片
- apache调优
- utf8转Unicode
- 使用logback
- dp 斜率优化 poj1180(转) 反过来dp 经典
- nsis安装包(二)_安装包基础
- hdu 畅通工程再续
- Oracle BBED 工具 说明
- Android 绑定按钮事件,并发送短信代码
- BBED-00303: unable to open file '/u01/app/oracle/oradata/vrh9i/'
- Android在网络异步加载图片方式总结