为什么这个字符的 ASCII 表示返回为 226 128 153? [英] Why is ASCII representation of this character returns as 226 128 153?
本文介绍了为什么这个字符的 ASCII 表示返回为 226 128 153?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我在玩这个工具:
http://www.unit-conversion.info/texttools/ascii/
当我尝试这个角色时:
'
我看到值 039 可以从以下位置验证:http://www.asciitable.com
I see the value 039 which can be verified from: http://www.asciitable.com
但我很好奇:
’
同一工具中的该字符将返回:226 128 153
This character in the same tool will return: 226 128 153
但据我所知 ASCII 是 8 位(甚至是 7...)
But as far as I know ASCII is 8 bits (or even 7...)
这里的226 128 153是什么?
推荐答案
好像是UTF16的表示.可能该网站正在使用 JavaScript 中的 "'".charCodeAt(0);
将字符转换为其代码表示形式
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屋!
查看全文