Re[2]: [PHP-DEV] unserialize() & unicode issues
| From: | val khokhlov | Date: | Tue, 13 Sep 2005 09:32:21 +0000 |
| Subject: | Re[2]: [PHP-DEV] unserialize() & unicode issues | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18813@lists.php.net to get a copy of this message | ||
Hello Antony,
Tuesday, September 13, 2005, 11:21:21 AM, you wrote:
AD> Even if the class name is in Unicode, we can try to convert it to ASCII
AD> and fail only in the case when we can't find its class entry in the list.
I think, it's not the only way.
If we don't care about being compatible with previous PHP's
serialize(), a more portable way is to store class/property names in
unicode (if unicode_semantics=off when serializing, convert hash keys to
unicode). Since we do know script encoding, we can always downgrade
unicoded names into local encoding.
--
Best regards,
val mailto:val@vk.kiev.ua