Skip to content

Commit b2f4b83

Browse files
committed
fix: resolve iconv error by switching to mb
1 parent aa6d3ec commit b2f4b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsing/ParserState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function parseCharacter($bIsForIdentifier)
221221
$sUtf32 .= \chr($iUnicode & 0xff);
222222
$iUnicode = $iUnicode >> 8;
223223
}
224-
return \iconv('utf-32le', $this->sCharset, $sUtf32);
224+
return mb_convert_encoding($sUtf32, $this->sCharset, 'UTF-32LE');
225225
}
226226

227227
if (!$bIsForIdentifier) {

0 commit comments

Comments
 (0)