Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /