字符编码混乱!

Kon*_*rad 3 c++ unicode encoding character

有一些问题让我了解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.
Run Code Online (Sandbox Code Playgroud)

非常感谢 :)

Bri*_*new 12

我发现Joel关于Unicode 的文章很好地解释了这一点.具体来说,它涵盖了历史(对于这个主题至关重要),编码(UTF-8/16等)和代码页.