Re: Proposed feature for json_encode()
| From: | Rasmus Lerdorf | Date: | Sun, 02 Dec 2007 02:06:04 +0000 |
| Subject: | Re: Proposed feature for json_encode() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33571@lists.php.net to get a copy of this message | ||
Alexey Zakhlestin wrote:
> Is such filtering specific to JSON? Does it have some use out of JSON-context?
> Maybe it would be better to provide a set of functions for encoding
> characters into '\u'-entities? (similiar to htmlentities,
> htmlspecialchars)
>
> because if we speak of 'theoretical' problem, we might end
> reimplementing this for some other function later
The \u syntax is specific to JSON, yes.
-Rasmus