|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-18 21:17 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ If i use json_encode its truncates the string on an unexpected char like the german umlauts. Reproduce code: --------------- <? $x = new stdClass(); $x->val = 'R?ck'; echo json_encode('R?ck'); echo json_encode($x); Expected result: ---------------- "R?ck"{"val":"R?ck"} Actual result: -------------- "R"{"val":"R"}