Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40307 invoked by uid 1010); 1 Oct 2005 12:00:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40292 invoked from network); 1 Oct 2005 12:00:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2005 12:00:32 -0000 X-Host-Fingerprint: 68.142.207.69 web31806.mail.mud.yahoo.com Received: from ([68.142.207.69:25023] helo=web31806.mail.mud.yahoo.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AC/2D-54476-06A7E334 for ; Sat, 01 Oct 2005 08:00:32 -0400 Received: (qmail 16890 invoked by uid 60001); 1 Oct 2005 12:00:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pYDB0wTdYayKMsh6CRDhEuNi2NZOjpPHD/yE9ecOunrClRQqpJu6F1rl5TBQwXnI9xiOhqLnz0SNAKOxdbJxZdljFRFZjgwfpGdh88hdBInR8HQb1vkug/qpgw2kD9NiT5DW+Cupvn6p+YeFMwgF6I/YeTGGQhgHEYnv7GDFAT4= ; Message-ID: <20051001120028.16888.qmail@web31806.mail.mud.yahoo.com> Received: from [202.46.19.93] by web31806.mail.mud.yahoo.com via HTTP; Sat, 01 Oct 2005 05:00:28 PDT Date: Sat, 1 Oct 2005 05:00:28 -0700 (PDT) To: Andrei Zmievski , Tex Texin Cc: internals@lists.php.net In-Reply-To: <20050823152306.94806.qmail@web31802.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: {add,strip}cslashes Q - Re: [PHP-DEV] PHP Unicode strings impl proposal From: rollandsantimano@yahoo.com (Rolland Santimano) References: <20050823152306.94806.qmail@web31802.mail.mud.yahoo.com> > [3] string addcslashes(string text, string charlist) > [4] string stripcslashes(string text) > Escape chars < 32 or > 126 with octal sequences, and escape > characters from charlist with backspace. Escaping chars/codepts with values > 126 is a pblm in Unicode strings. Using the 3-digit octal escape sequence, only the first 0x1FF codepts will be escaped. One soln is to only escape values < 32 with the 3-digit octal sequence. Or use hex sequences for escaping everything. Thoughts ? - Rolland