{add,strip}cslashes Q - Re: [PHP-DEV] PHP Unicode strings impl proposal
| From: | Rolland Santimano | Date: | Sat, 01 Oct 2005 12:00:28 +0000 |
| Subject: | {add,strip}cslashes Q - Re: [PHP-DEV] PHP Unicode strings impl proposal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19309@lists.php.net to get a copy of this message | ||
> [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