note 89044 added to function.json-encode

From: Date: Thu, 19 Feb 2009 04:35:29 +0000
Subject: note 89044 added to function.json-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-150843@lists.php.net to get a copy of this message
json_encode didn't work well for me, where some of my strings included special characters (not necessarily utf8). It would simply return a null. For example: Hinge 107° The degree symbol would cause the entire string to be returned as a null. I managed to solve this once by trying to convert the text to utf8 first, however this didn't work consistently. In this instance I have reverted to an older JSON encoding class to process my strings. ---- Server IP: 117.55.229.1 Probable Submitter: 122.148.149.28 ---- Manual Page -- http://www.php.net/manual/en/function.json-encode.php Edit -- https://master.php.net/note/edit/89044 Del: integrated -- https://master.php.net/note/delete/89044/integrated Del: useless -- https://master.php.net/note/delete/89044/useless Del: bad code -- https://master.php.net/note/delete/89044/bad+code Del: spam -- https://master.php.net/note/delete/89044/spam Del: non-english -- https://master.php.net/note/delete/89044/non-english Del: in docs -- https://master.php.net/note/delete/89044/in+docs Del: other reasons-- https://master.php.net/note/delete/89044 Reject -- https://master.php.net/note/reject/89044 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150843) next »