Browse Source

Fix handling of \u escapes

pull/4/head
maxmitti 12 months ago
parent
commit
c553b74c89
  1. 2
      JSONStream.php

2
JSONStream.php

@ -232,7 +232,7 @@ class JSONStream
$this->offset += strlen($m[0]);
if ($m[0][0] == "\\")
{
if ($m[0] == 'u')
if ($m[0][1] == 'u')
$v .= mb_convert_encoding(pack('H*', str_replace('\\u', '', $m[0])), 'UTF-8', 'UTF-16BE');
else
{

Loading…
Cancel
Save