note 117167 added to json.constants
| From: | on5wis at mac dot com | Date: | Fri, 24 Apr 2015 09:27:26 +0000 |
| Subject: | note 117167 added to json.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202364@lists.php.net to get a copy of this message | ||
since json_encode expects a UTF-8 string there is no need to encode the ⬠symbol.
I suggest you try to echo : json_encode('â¬');
It gives: "\u20ac"
I'm running PHP 5.6.5 on the CLI, on MacOS X 10.10
----
Server IP: 72.52.91.14
Probable Submitter: 2a02:1811:8c:7f00:b42e:827b:f3c0:51f9
----
Manual Page -- http://php.net/manual/en/json.constants.php
Edit -- https://master.php.net/note/edit/117167
Del: integrated -- https://master.php.net/note/delete/117167/integrated
Del: useless -- https://master.php.net/note/delete/117167/useless
Del: bad code -- https://master.php.net/note/delete/117167/bad+code
Del: spam -- https://master.php.net/note/delete/117167/spam
Del: non-english -- https://master.php.net/note/delete/117167/non-english
Del: in docs -- https://master.php.net/note/delete/117167/in+docs
Del: other reasons-- https://master.php.net/note/delete/117167
Reject -- https://master.php.net/note/reject/117167
Search -- https://master.php.net/manage/user-notes.php