<?php echo "原文为:我爱你<br>"; include("class.Chinese.php"); $chs = new Chinese("GB2312","BIG5","我爱你"); echo "转换后的结果:".$chs->ConvertIT(); ?>