rmxs, i can, but I do not know if this will work for all. But you can do this for yourself:
Replace this
PHP Code:
if (function_exists('iconv'))
{
$query = @iconv('UTF-8', $stylevar['charset'], $query);
}else
{
$query = $query;
}
With
PHP Code:
function utf8_to_win($string)
{
for ($c = 0; $c < strlen($string); $c++)
{
$i = ord($string[$c]);
if ($i <= 127)
@$out .= $string[$c];
if (@$byte2)
{
$new_c2 = ($c1 & 3) * 64 + ($i & 63);
$new_c1 = ($c1 >> 2) & 5;
$new_i = $new_c1 * 256 + $new_c2;
if ($new_i == 1025)
{
$out_i = 168;
} else
{
if ($new_i == 1105)
{
$out_i = 184;
} else
{
$out_i = $new_i - 848;
}
}
@$out .= chr($out_i);
$byte2 = false;
}
if (($i >> 5) == 6)
{
$c1 = $i;
$byte2 = true;
}
}
return $out;
}
$query = utf8_to_win($query);