return (utf8_encode(utf8_decode($string)) == $string); } }?> romans at void dot lv 13 years ago Here is optimized function which converts binary UTF symbol code into unicoded string. function code2utf($num){ if($num<128)return chr($num); if($num<1024)return chr(($num>>6)+...
DtMail decodes received email by looking at the MIME charset and content transfer encoding provided with the email. Windows-125x MIME charsets are supported.For sending email, you need to specify a MIME charset that is understood by the recipient mail user agent (mail client), or you can ...
A potentially misleading function isutf8_decode. It turns UTF-8 into ISO-8859-1. Any characters not available in ISO-8859-1 (like Cyrillic, Greek, Thai, etc) are turned into question marks. It’s misleading because you might have expected more from it, but it does the best it can. S...