I'm trying to parse a CSV file using PHP. In one of the CSV files one space character is causing an error, I need to return an error message if this happens. I checked on https://www.soscisurvey.de/tools/view-chars.php and the character is U+A0 or /u00A0
I tried:
if(ctype_print($row[0]) != true) {
//show error
}
And this catches the U+A0 character but it also catches other characters that I don't want it to catch e.g. ê
How would I check for U+A0 only? I'm pretty new to PHP so any help appreciated, thanks!