From c553b74c893f5c3f841a96e3ada284fb2ed39db7 Mon Sep 17 00:00:00 2001 From: maxmitti Date: Thu, 20 Aug 2020 16:14:05 +0200 Subject: [PATCH] Fix handling of \u escapes --- JSONStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONStream.php b/JSONStream.php index 6d7f5c1..de12408 100644 --- a/JSONStream.php +++ b/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 {