|
@@ -182,8 +182,8 @@ |
|
|
block discarded – undo |
|
182
|
182
|
*/ |
|
183
|
183
|
public function mbJsonEncode(array $input) |
|
184
|
184
|
{ |
|
185
|
|
- return preg_replace_callback('/\\\\u([0-9a-zA-Z]{4})/', function ($matches) { |
|
186
|
|
- return mb_convert_encoding(pack('H*',$matches[1]), 'UTF-8','UTF-16'); |
|
|
185
|
+ return preg_replace_callback('/\\\\u([0-9a-zA-Z]{4})/', function($matches) { |
|
|
186
|
+ return mb_convert_encoding(pack('H*', $matches[1]), 'UTF-8', 'UTF-16'); |
|
187
|
187
|
}, |
|
188
|
188
|
json_encode($input, JSON_UNESCAPED_UNICODE) |
|
189
|
189
|
); |
Please login to merge, or discard this patch.