Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31269 invoked by uid 1010); 2 Dec 2007 02:06:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31254 invoked from network); 2 Dec 2007 02:06:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2007 02:06:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:52370] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/D4-24257-51312574 for ; Sat, 01 Dec 2007 21:06:14 -0500 Received: from trainburn-lm-corp-yahoo-com.local ([144.135.126.220]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-1) with ESMTP id lB2265UH020479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 1 Dec 2007 18:06:08 -0800 Message-ID: <4752130C.701@lerdorf.com> Date: Sun, 02 Dec 2007 13:06:04 +1100 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Alexey Zakhlestin CC: Stanislav Malyshev , Sara Golemon , omar@php.net, PHP Internals References: <474F0EE7.8020201@php.net> <474F4E47.8050506@zend.com> <474F5E12.1050404@php.net> <474F5F75.3030808@zend.com> <475081DD.90404@php.net> <4750B3CA.20405@zend.com> <475101FF.5080103@lerdorf.com> In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/4970/Sat Dec 1 07:44:03 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] Proposed feature for json_encode() From: rasmus@lerdorf.com (Rasmus Lerdorf) 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