prawnsalad / Nexmo-PHP-lib

Nexmo SMS gateway example library
MIT License
121 stars 98 forks source link

Fix for UTF-8 strings #1

Closed deceze closed 12 years ago

deceze commented 12 years ago

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.