为什么这个字符的ASCII表示返回为226 128 153? [英] Why is ASCII representation of this character returns as 226 128 153?
问题描述
所以我在玩这个工具:
http://www.unit-conversion.info/texttools/ascii/
当我尝试此字符时:
'
请参阅可通过以下方式验证的值 039 : http://www.asciitable.com
但我是喜剧:
'
同一工具中的此字符将返回: 226 128 153 b
$ b
但是据我所知,ASCII是8位(甚至7 ...)
什么是 153 在这里?
这似乎是UTF16表示。可能是网站使用'将字符转换为代码表示。charCodeAt(0);
So I am playing with this tool:
http://www.unit-conversion.info/texttools/ascii/
When I try this character:
'
I see the value 039 which can be verified from: http://www.asciitable.com
But I am curios about:
’
This character in the same tool will return: 226 128 153
But as far as I know ASCII is 8 bits (or even 7...)
What is 226 128 153 in here?
it seems that that is the UTF16 representation. probably that website is converting the characters to their code representation with "’".charCodeAt(0);
in Javascript
这篇关于为什么这个字符的ASCII表示返回为226 128 153?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!