// Convert from ISO to UTF-8
foreach ($response as $k => $v) {
- $response[$k] = iconv('ISO-8859-1', 'UTF-8//TRANSLIT',$v);
+ $response[$k] = iconv('windows-1252', 'UTF-8//TRANSLIT', $v);
+ /*
+ // iconv()-less ISO-8859-1 -> UTF-8
+ $response[$k] = preg_replace(
+ "/([\x80-\xFF])/e",
+ "chr(0xC0|ord('\\1')>>6).chr(0x80|ord('\\1')&0x3F)",
+ $v
+ );
+ */
} // END - if
// Shall we count the query as used?