From 3beb19945b599d448c2524666effe1acdf29165f Mon Sep 17 00:00:00 2001 From: 吕海涛 Date: Tue, 10 Jul 2018 08:00:02 +0800 Subject: add JSON_UNESCAPED_UNICODE option (#4191) --- php/src/Google/Protobuf/Internal/GPBJsonWire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php/src/Google/Protobuf/Internal/GPBJsonWire.php') diff --git a/php/src/Google/Protobuf/Internal/GPBJsonWire.php b/php/src/Google/Protobuf/Internal/GPBJsonWire.php index 9ae57ab3..43f4745d 100644 --- a/php/src/Google/Protobuf/Internal/GPBJsonWire.php +++ b/php/src/Google/Protobuf/Internal/GPBJsonWire.php @@ -226,7 +226,7 @@ class GPBJsonWire $output->writeRaw("\"", 1); break; case GPBType::STRING: - $value = json_encode($value); + $value = json_encode($value, JSON_UNESCAPED_UNICODE); $output->writeRaw($value, strlen($value)); break; // case GPBType::GROUP: -- cgit v1.2.3