c++ - 如何在C++上解码字符串

标签 c++

如何在 C++ 中解码字符串。 例如 utf8 到 cp1251 或 koi8-r 到 utf8

最佳答案

C++ 本身不支持执行此类转换。你可以看看ICU图书馆。

ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software.

关于c++ - 如何在C++上解码字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2424908/

相关文章:

c++ - 派生模板类访问基类成员数据

c++ - 获取插入点的窗口坐标 - Cocoa

c++ - 动画到数组

c++ - OpenMP 结果不如预期

c++ - 如何将一个结构体的地址分配给另一个结构体?

c++ - 如何使 QChar.unicode() 报告组合字符的 utf-16 表示形式?

c++ - 在可变参数模板类中初始化静态数组

c++ - Node是什么样的类型?

c++ - QFileSystemWatcher:检测文件是否已刷新

C++ 我想避免使用指针,而是使用 STL 和引用来维护小型数据缓存