marcuz / libpynexmo

Python library to interact with Nexmo SMS API
BSD 2-Clause "Simplified" License
63 stars 34 forks source link

Convert sms body to utf-8 before sending request #22

Open oryband opened 9 years ago

oryband commented 9 years ago

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.