Lea Verou 2011. 2. 13.

Convert PHP serialized data to Unicode

Read Original

This technical article addresses a common problem when converting databases from single-byte encodings to Unicode UTF-8. PHP serialized data stores byte lengths, breaking unserialization after encoding conversion. The author provides a custom PHP function that recursively recounts string lengths in serialized data to fix this issue, handling edge cases like nested serialized strings.

Convert PHP serialized data to Unicode

댓글

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet