RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Unicode::Confusable

Unicode::Confusable.confusable? "ℜ𝘂ᖯʏ", "Ruby" # => true

There are many Unicode characters that look very similar or even the same, but are represented by different codepoints. For example, there is no visual difference between some latin and cyrillic letters: “C” vs “С”. The unicode-confusable gem can be used to compare if two strings look very similar.

Comments

This is really cool, thank you for sharing (and making)!

Thank you!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in