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