Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to do string normalization by using Unorm.js #43

Open
chdatif opened this issue Jan 14, 2016 · 0 comments
Open

Not able to do string normalization by using Unorm.js #43

chdatif opened this issue Jan 14, 2016 · 0 comments

Comments

@chdatif
Copy link

chdatif commented Jan 14, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant