如何在 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/