Skip to content

Commit 9a14221

Browse files
Various fixes
1 parent 95695b8 commit 9a14221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Php72.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function mb_chr($code, $encoding = null)
182182
$s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
183183
}
184184

185-
if ('UTF-8' !== $encoding) {
185+
if ('UTF-8' !== $encoding = $encoding ?? mb_internal_encoding()) {
186186
$s = mb_convert_encoding($s, $encoding, 'UTF-8');
187187
}
188188

0 commit comments

Comments
 (0)