We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6d3ec commit 786eb09Copy full SHA for 786eb09
src/Parsing/ParserState.php
@@ -221,7 +221,7 @@ public function parseCharacter($bIsForIdentifier)
221
$sUtf32 .= \chr($iUnicode & 0xff);
222
$iUnicode = $iUnicode >> 8;
223
}
224
- return \iconv('utf-32le', $this->sCharset, $sUtf32);
+ return mb_convert_encoding($sUtf32, $this->sCharset, 'UTF-32LE');
225
226
227
if (!$bIsForIdentifier) {
@@ -232,7 +232,7 @@ public function parseCharacter($bIsForIdentifier)
232
// Ranges: a-z A-Z 0-9 - _
233
//if (\preg_match('/[a-zA-Z0-9\-_]/', $sPeekChar) || \ord($sPeekChar) > 0xa1) {
234
if (
235
- ($peek >= 97 && $peek <= 122)
+ ($peek >= 97 && $peek <= 122)
236
|| ($peek >= 65 && $peek <= 90)
237
|| ($peek >= 48 && $peek <= 57)
238
|| ($peek === 45)
0 commit comments