我在理解 UTF-8、UTF-16、ASCII 和 ANSI 之间的差异时遇到了一些问题。在做了一些研究之后,我有了一些想法,但如果有人能准确解释它们之间的区别(包括每个典型字符的字节表示),那将非常有用。
我想我的问题归结为
1) How do each of the above store characters as bytes 2) What are the differences between the above standards 3) What is a code page 4) Method of converting characters between the various types.
非常非常感谢:)
最佳答案
我找到了 Joel's article关于 Unicode 很好地解释了这一点。具体来说,它涵盖了历史(对于本主题至关重要)、编码(UTF-8/16 等)和代码页。
关于c++ - 字符编码困惑!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/892462/