SDU Tools: AsciiOnly and DigitsOnly
This post covers another pair of useful functions that are part of the SDU Tools collection.
The first tool AsciiOnly deals with situations where you need to convert Unicode data (multi-byte data) to ASCII data (single byte). It processes each character and if it’s not in the ASCII range, it replaces the character with the value that you supply. If your second parameter is an empty string, you’ll effectively strip out the non-ASCII characters, but your replacement can also be one or more characters.
2017-11-22