-
Notifications
You must be signed in to change notification settings - Fork 0
javascript
Alick Zhao edited this page Nov 22, 2012
·
1 revision
JavaScript store strings using 16-bit code units. That's UCS-2. It is not UTF-16. See the reference.
UCS-2 sucks. See also this question on SO.
>>> '𝟘'.length // 𝟘 is U+1D7D8
2
Some references:
本作品采用知识共享署名-相同方式共享 4.0 Unported许可协议进行许可。