Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40275 invoked by uid 1010); 25 Oct 2005 19:16:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40260 invoked from network); 25 Oct 2005 19:16:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2005 19:16:41 -0000 X-Host-Fingerprint: 68.142.207.68 web31805.mail.mud.yahoo.com Received: from ([68.142.207.68:44856] helo=web31805.mail.mud.yahoo.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B9/D3-22886-9948E534 for ; Tue, 25 Oct 2005 15:16:41 -0400 Received: (qmail 55202 invoked by uid 60001); 25 Oct 2005 19:16:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3JHicPWdRnMPCOaWTJilKRh/N67AURw8dj30WiowuO4pPa+fobsJ+Q2NMFqNvsoImoodPdrz6VzjSSxGpFgc2rDBD5pCDIo/wAk+9KX1GI0IZpflIwkOHRTajPEftqW82SyZw8BvGzSkNovzNShW3kEG3a+P7zKsUrMakoCE758= ; Message-ID: <20051025191639.55200.qmail@web31805.mail.mud.yahoo.com> Received: from [202.46.19.93] by web31805.mail.mud.yahoo.com via HTTP; Tue, 25 Oct 2005 12:16:38 PDT Date: Tue, 25 Oct 2005 12:16:38 -0700 (PDT) To: internals MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Converting {add,strip}cslashes to Unicode From: rollandsantimano@yahoo.com (Rolland Santimano) Resending, any update on the foll ? TIA, Rolland > Date: Sat, 1 Oct 2005 05:00:28 -0700 (PDT) > From: Rolland Santimano > > > [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 ?