Skip to content

Commit 87c95a6

Browse files
committed
fix: mb_convert_encoding(): Illegal character encoding specified
1 parent 304faf7 commit 87c95a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/Pinyin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function utf8_gb($c)
109109
$str .= chr(0x80 | $c >> 6 & 0x3F);
110110
$str .= chr(0x80 | $c & 0x3F);
111111
}
112-
return mb_convert_encoding('UTF-8', 'GB2312', $str);
112+
return mb_convert_encoding($str, 'UTF-8', 'ISO-8859-1');
113113
}
114114

115115
public static function arrayCombine()

0 commit comments

Comments
 (0)