Skip to content Skip to sidebar Skip to footer

String Has Hidden Characters, Can't Able To Verify ,

I asked a question some 2 hours before [Not required to see the question, Just a reference ] Storing images using node.js gives error The solution given was was literally the same

Solution 1:

There are 2 Unicode characters between the n and the _, a ‌ zero width non-joiner followed by a zero width space.

Seeing them will depend on the editor/font you use and how it decides to display this class of non-printable character - if at all.

To remove them:

newStr = oldStr.replace(/[\u200c\u200b]/g, "");

Post a Comment for "String Has Hidden Characters, Can't Able To Verify ,"