unorm
unorm copied to clipboard
Not able to do string normalization by using Unorm.js
In my visual studio 2008 asp.net project I tried to use Unorm.js for string normalization. I added the unorm.js file in my project and use it on my webpage and write my own javascript function to normalize the string using UNorm.normalize('NFC', str) function
but an error occurs within the Unorm.js file's function fromData(next, cp, needfeature) as given below:
JavaScript runtime error: Unable to get property '768' of undefined or null reference
I tried following ways to normalize the string from my javascript code but no luck:
var strpwd = 'Ω';
1- nstr = UNorm.normalize('NFC',strpwd);
2- nstr = UNorm.nfc(strpwd);
Please suggest me the solution.