如何在C ++中使用Unicode(UTF-8) [英] How to use Unicode (UTF-8) in C++
本文介绍了如何在C ++中使用Unicode(UTF-8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
C ++中的Unicode
如果我记得正确,默认字符和字符串编码在C ++中是ASCII。有一个简单的方法来启用Unicode支持?
If I remembered correctly, the default character and string encoding in C++ are ASCII. Is there a simple way to enable Unicode support?
推荐答案
当前C ++不以任何方式指定编码。您可以查看实际的Unicode库(如ICU),也可以在一些体系结构和实现中使用wchar_t来操纵和保存Unicode字符串。
Current C++ doesn't specify encoding in any way. You might look into an actual Unicode library like ICU or, on some architectures and implementations you can use wchar_t to manipulate and hold Unicode strings.
这篇关于如何在C ++中使用Unicode(UTF-8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文