Results 1 to 1 of 1
Thread: Mapping Windows Characters
May 30, 2014, 09:55 #1
- Join Date
- Jan 2007
- 1 Post(s)
- 0 Thread(s)
Mapping Windows Characters
I'm importing data from an Excel generated CSV. (I have no options for how the file is generated.) Certain characters come through garbled.
After trying out different snippets, I found that the following line of code will remove all of the offending characters :
$text = preg_replace('/[^(\x20-\x7F)]*/','', $text);
The Wikipedia page maps the character set, but I don't know how to use this chart in PHP in str_replace or pre_replace.
Can anyone provide some assistance?
Thank You E.