|
|
|
|
|
by codeka
4951 days ago
|
|
I'm sorry but you're wrong. I suggest you inform yourself better of the subject you're talking about before you call people "ignorant morons" next time. dietrichepp is talking about Normalized Form D, which is a valid form of Unicode and cannot be counted using codepoints like you're doing. Maybe you can try: '𠀋'.substr(0,1) |
|
Actually Javascript is messed up with Unicode string and binary strings, that's why Nodejs invented Buffer
http://nodejs.org/api/buffer.html