Пример #1
0
 public function testCheckChinese()
 {
     $str = '你好,这里是卖咖啡!';
     $this->assertEquals(Util::chkChinese($str), 1);
     $strGB = Util::encodePath($str);
     $this->assertEquals($str, iconv("GB2312", "UTF-8", $strGB));
 }