libpynexmo
libpynexmo copied to clipboard
Convert sms body to utf-8 before sending request
This line will crash if params isn't encoded in utf-8 and if the message body (or other fields) contain some unicode characters (like arabic).
I've noticed this function which does exactly what the title says, except it isn't used anywhere. This should be done before every request is sent.