Converting {add,strip}cslashes to Unicode

From: Date: Tue, 25 Oct 2005 19:16:38 +0000
Subject: Converting {add,strip}cslashes to Unicode
Groups: php.internals 
Request: Send a blank email to internals+get-19723@lists.php.net to get a copy of this message
Resending, any update on the foll ? TIA, Rolland > Date: Sat, 1 Oct 2005 05:00:28 -0700 (PDT) > From: Rolland Santimano <rollandsantimano@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 ?

« previous php.internals (#19723) next »