Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UCS-2 和 UTF-16 #2

Open
adah1972 opened this issue Jul 18, 2017 · 0 comments
Open

UCS-2 和 UTF-16 #2

adah1972 opened this issue Jul 18, 2017 · 0 comments

Comments

@adah1972
Copy link

我觉得你的理解似乎有点问题。你提到 utfcpp 里的 utf8to16 实际上是转 ucs-2,但这个说法是错的。UCS-2 和 UTF-16 的区别就是前者不支持 surrogate pair,不能支持 U+10000 及以上的 Unicode 字符。而 utf8to16 里的代码里是支持 surrogate pair 的,所以 utf8to16 这个名字完全没有问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant