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
Try this, it will work for all unexpected character like ♫ ◘ etc...
dataStr.replace(/[\u{0080}-\u{FFFF}]/gu,"");