Closed chenzhulin closed 1 year ago
代码行数大概在100行左右 报错信息:iconv(): Detected an illegal character in input string
$string = "1224旺仔QQ糖"; $goods_initials = (new PinYin())->getFirstPY($string); $goods_initials_all = (new PinYin())->getAllPY($string);
var_dump($goods_initials,$goods_initials_all);
你确定你用的 pinyin 库是我写的?
这个 getFirstPY 和 getAllPY 应该没有在我的这个库里存在过哈
getFirstPY
getAllPY
Owner 哈哈哈弄错了,这个不是大佬你写的,抱歉抱歉
但是大佬我用你这个工具包也有点问题
输出的内容也不对应数字没有输出
解决了
代码行数大概在100行左右 报错信息:iconv(): Detected an illegal character in input string
$string = "1224旺仔QQ糖"; $goods_initials = (new PinYin())->getFirstPY($string); $goods_initials_all = (new PinYin())->getAllPY($string);
var_dump($goods_initials,$goods_initials_all);