1.页内显示header("Content-Type: text/html; CHARSET=GBK");

2.insert语句要转换:$sql=iconv('UTF-8','GBK',$sql);