在VC ++中更改CString的编码 [英] Change encoding of CString in VC++

查看:65
本文介绍了在VC ++中更改CString的编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我有一个CSTring对象.如何更改此字符串的编码(UTF8,UTF16 ...)

谢谢,
Ankata

Dear all,

I have a CSTring object. How can I change encoding of this string (UTF8, UTF16...)

Thanks,
Ankata

推荐答案

此处 [ Unicode和CStrings [ UTF-7和UTF-8 [
Here[^] you will find almost anything related to CString class. It is a great reference from Dr. Joseph M. Newcomer.
The answer of your question is in Unicode and CStrings[^] section (examine the conversion tables).
After that read the UTF-7 and UTF-8 in CStrings[^] section (here you will find out that some CString methods may produce unexpected results).


这篇关于在VC ++中更改CString的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆