Tuesday 25 June 2019

Never knew importance of String.normalize function. Where should I be using it?

I'm surprised I never knew the importance of String.normalize function or even heard of it. I'm trying to figure out where it goes in the application and it looks like it should be used everywhere I accept user input?How are you using String.normalize throughout your apps? Seems like it would be easy to forget to use it somewhere I need it because of all the places it needs to be.Which of the 4 normalization options do you choose and why: NFC, NFD, NFKC, NFKD? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#Parameters

Submitted June 25, 2019 at 11:12AM by nowboarding

No comments:

Post a Comment