将UTF-8 char *转换为CString [英] Conversion of UTF-8 char * to CString
本文介绍了将UTF-8 char *转换为CString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将UTF-8 char *中的字符串转换为CString?
How do I convert a string in UTF-8 char* to CString?
推荐答案
调用 MultiByteToWideChar
CP_UTF8
的代码页,然后正常使用CString。
Call MultiByteToWideChar
with a code page of CP_UTF8
, then use CString as normal.
这篇关于将UTF-8 char *转换为CString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文