string - UTF8 与 UTF16 与 char* 与什么?有人给我解释一下这个烂摊子!

标签 string utf-8 character-encoding utf-16 multibyte

我已经设法基本上忽略了所有这些多字节字符的东西,但现在我需要做一些 UI 工作,我知道我在这方面的无知会 catch 我!谁能在几段或更少的段落中解释我需要知道的内容,以便我可以本地化我的应用程序?我应该使用什么类型(我同时使用 .Net 和 C/C++,对于 Unix 和 Windows,我都需要这个答案)。

最佳答案

查看 Joel Spolsky 的 The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

编辑 20140523 : 另外,看 Characters, Symbols and the Unicode Miracle 由 YouTube 上的 Tom Scott 撰写 - 不到 10 分钟,对 UTF-8 出色的“hack”进行了精彩的解释

关于string - UTF8 与 UTF16 与 char* 与什么?有人给我解释一下这个烂摊子!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/172133/

相关文章:

c++ - std::cin输入带有空格?

java - 处理长字符串和 TextView 行为

php - 通过 PHP 将 ♥ 插入 MySQL(心形)

php - MySQL 到 JSON : Issue with encoding of German special characters in UTF-8

python - Unicode解码错误: 'utf8' codec can't decode byte 0xa9 in position 1

c++ - 你如何正确使用 WideCharToMultiByte

PHP 将用户错误输入的 MS Word 字符存储到 MySQL 中

java - java "stringtokenizer.nextToken(delimiter); "是如何工作的?

android - 如何将数据传递给广播接收器?

HTML 实体 : When to Use Decimal vs. 十六进制