utf8_encode converts an ISO-8859-1 encoded string to UTF-8. That does nothing for ASCII-only text and completely garbles actual UTF-8 encoded text. So far this library was not able to send "international" text, at best only the 256 ISO-8859-1 characters.
Fixing this by only checking for UTF-8 validity without touching the string.
utf8_encode
converts an ISO-8859-1 encoded string to UTF-8. That does nothing for ASCII-only text and completely garbles actual UTF-8 encoded text. So far this library was not able to send "international" text, at best only the 256 ISO-8859-1 characters.Fixing this by only checking for UTF-8 validity without touching the string.