Can someone provide a regular expression to search and replace illegal characters found
Example, removing �
I am not sure how many types of \'illegal\' char
Invalid characters get converted to 0xFFFD on parsing, so any invalid character codes would get replaced with:
myString = myString.replace(/\uFFFD/g, '')
You can get all types of invalid sorts of chars here