Is there a list of characters that look similar to English letters?

前端 未结 4 1573
情歌与酒
情歌与酒 2020-12-12 22:44

I’m having a crack at profanity filtering for a web forum written in Python.

As part of that, I’m attempting to write a function that takes a word, and returns all p

4条回答
  •  清歌不尽
    2020-12-12 22:46

    This is probably both vastly more deep than you need, yet not wide enough to cover your use case, but the Unicode consortium have had to deal with attacks against internationalised domain names and came up with this list of homographs (characters with the same or similar rendering):

    http://www.unicode.org/Public/security/latest/confusables.txt

    Might make a starting point at least.

提交回复
热议问题