On 22.03.2021 16:41, Rowan Tommins wrote: > That code will never do anything useful.
I already proved it is useful, regardless of it's name/intention. This is old code, not even mine, so maybe when it's been written the PHP documentation wasn't that clear about the function(s) intention. Or the intention was different. ps. to Kamil, We use utf8_encode() to make the string safe to be put in utf-8 database column/table. We use utf8_decode() to convert that back to what it was before. The tests prove that the conversion is lossless. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php