Skip to content
Advertisement

Tag: unicode-normalization

How to convert Fancy text to normal text in javascript?

I’m creating a search function on javascript that has normal and fancy text. The problem is when searching: Fancy text value: π—¬π—Όπ˜‚ 𝗑𝗲𝗲𝗱 π˜π—Ό π—žπ—»π—Όπ˜„ π—”π—―π—Όπ˜‚π˜ it does not work. http://jsfiddle.net/goLk7qyf/ Answer Normalise the string with compatibility decomposition before searching

Advertisement