外观与ASCII相似的UTF8字符 [英] Similar looking UTF8 characters for ASCII

查看:100
本文介绍了外观与ASCII相似的UTF8字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个包含ASCII字符和相同外观的UTF8字符的表.我知道这也取决于字体是否相同,但是一般的开头就足够了.

I'm looking for a table which contains ASCII characters and same looking UTF8 characters. I know it also depends on the font is they look the same, but something generic to start with is enough.

>>> # 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'

推荐答案

这是一个非常有用的工具,它将显示所有看起来相似的字符,您可以选择是否真的足够相似:)

This is very useful tool as it will show you all characters which look similar and you can choose if this is REALLY similar enough for you :)

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

其他一些资源:

用于检测可疑内容的Python包

这篇关于外观与ASCII相似的UTF8字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆