Re: [PHP-DEV] upgrading the zlib extension to unicode

2006-07-25 Thread Andrei Zmievski
On Jul 25, 2006, at 3:03 PM, Nuno Lopes wrote: Hello, So Andrei asked me to upgrade the zlib extension, but I have a few questions I would like to discuss with you: * when receiving an unicode string, what should we do? compress with as-is, prepend a BOM header (and skip it while uncompre

Re: [PHP-DEV] upgrading the zlib extension to unicode

2006-07-25 Thread Ilia Alshanetsky
I think whenever we are storing data in external source such as compressed file, shared memory and so on, we need to treat the data as binary. On 25-Jul-06, at 6:03 PM, Nuno Lopes wrote: Hello, So Andrei asked me to upgrade the zlib extension, but I have a few questions I would like to

[PHP-DEV] upgrading the zlib extension to unicode

2006-07-25 Thread Nuno Lopes
Hello, So Andrei asked me to upgrade the zlib extension, but I have a few questions I would like to discuss with you: * when receiving an unicode string, what should we do? compress with as-is, prepend a BOM header (and skip it while uncompressing)? (now I'm unsure if PHP/ICU uses utf16 in th