Remove non-utf8 characters from string Here is a nice little PHP snippet that will remove non-ASCII characters from a String. Code was taken from here.