如何转首拼或者全拼的字符串中如果是1111 四个数字开头的字符串会转换失败,报错信息和代码我放下面了
chenzhulin opened this issue · comments
陈朱霖 commented
代码行数大概在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);
安正超 commented
你确定你用的 pinyin 库是我写的?
安正超 commented
这个 getFirstPY
和 getAllPY
应该没有在我的这个库里存在过哈
陈朱霖 commented
Owner
哈哈哈弄错了,这个不是大佬你写的,抱歉抱歉
陈朱霖 commented
陈朱霖 commented
解决了