php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug53946.phpt for JSON related Bug #53946Patch version 2011-07-19 16:02 UTC Return to Bug #53946 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: irker@php.net--TEST-- bug #53946 (json_encode() with JSON_UNESCAPED_UNICODE) --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php var_dump(json_encode("latin 1234 -/ \n russian мама мыла раму U+1D11E >𝄞<")); var_dump(json_encode("latin 1234 -/ \n russian мама мыла раму U+1D11E >𝄞<", JSON_UNESCAPED_UNICODE)); ?> --EXPECT-- string(130) ""latin 1234 -\/ \n russian \u043c\u0430\u043c\u0430 \u043c\u044b\u043b\u0430 \u0440\u0430\u043c\u0443 U+1D11E >\ud834\udd1e<"" string(74) ""latin 1234 -\/ \n russian мама мыла раму U+1D11E >𝄞<"" |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 14:01:29 2024 UTC |