<? /*********************************************************************** written by caocao [email protected] http://caocao.oso.com.cn
with the help of keyes [email protected] http://my-wjl.scu.edu.cn/~keyes ***********************************************************************/ function isbig5($code) { if (strlen($code)>=2) { $code=strtok($code,"");
function wordtostring($code) { return (chr(hexdec(substr($code,0,2))).chr(hexdec(substr($code,2,2)))); }
function big5togb($code) { include "data_big5.php"; $output=""; $length=strlen($code); $code=strtok($code,""); $idx=0; while ($idx < $length) { $tmpstr=$code[$idx].$code[$idx+1];