类似于ASCII的UTF8字符

时间:2017-10-22 07:50:28

标签: utf-8 ascii non-ascii-characters extended-ascii

我正在寻找一个包含ASCII字符和相同的UTF8字符的表。我知道它也取决于字体看起来是否相同,但是开头的通用就足够了。

>>> # PY3 code:
>>> a='H'  # ascii
>>> b='Н'  # utf8
>>> a==b
False
>>> ' '.join(format(ord(x), 'b') for x in a)
'1001000'
>>> ' '.join(format(ord(x), 'b') for x in b)
'10000011101'
>>> a='P'  # ascii
>>> b='Ρ'  # utf8
>>> a==b
False
>>> ' '.join(format(ord(x), 'b') for x in a)
'1010000'
>>> ' '.join(format(ord(x), 'b') for x in b)
'1110100001'

1 个答案:

答案 0 :(得分:3)

这是非常有用的工具,因为它会显示所有看起来相似的字符,你可以选择它是否真的与你相似:)

https://unicode.org/cldr/utility/confusables.jsp?a=test&r=None

其他一些资源:

相关问题