I have written code that looks like this.
foreach ($row as $k => $v) {
if (is_numeric($v))
continue;
$row[$k] = preg_replace("/([\\xC0-\\xDF])([\w|\W])/e", "'\\1'.chr(ord('\\2')-64) ", $v) ;
}
Incidentally, had to do som strange copy/paste action to get that line to not break wordpress.
And FWIW, that preg_replace effectively converts windows-1252 characters out of the unused overlap range in ISO 8859-1.

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment