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