We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95695b8 commit 9a14221Copy full SHA for 9a14221
Php72.php
@@ -182,7 +182,7 @@ public static function mb_chr($code, $encoding = null)
182
$s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
183
}
184
185
- if ('UTF-8' !== $encoding) {
+ if ('UTF-8' !== $encoding = $encoding ?? mb_internal_encoding()) {
186
$s = mb_convert_encoding($s, $encoding, 'UTF-8');
187
188
0 commit comments