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.