hi did any used this function sucessfully before?
i just tried it on win32 php with a form submit "charset" variable
$charset = $HTTP_POST_VARS["charset"]; //UTF-8
$csb = bin2hex($charset);
$tmp1 = utf8_encode($charset);
$t1b = bin2hex($tmp1);
echo("charset = $charset, $csb, UTF-8 encoded = $tmp1, $t1b<br>");
the browser displays
charset = UTF-8, 5554462d38, UTF-8 encoded = UTF-8, 5554462d38
i.e. no encoded is done! my page already set to UTF-8 charset.
any one has the idea?
terence