You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue using the helper library to send mails to recipients with unicode first name / last name:
File "/usr/local/lib/python2.7/dist-packages/sendgrid/helpers/mail/mail.py", line 379, in __init__ self.value = value File "/usr/local/lib/python2.7/dist-packages/sendgrid/helpers/mail/mail.py", line 395, in value self._value = str(value) UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
I encountered an issue using the helper library to send mails to recipients with unicode first name / last name:
File "/usr/local/lib/python2.7/dist-packages/sendgrid/helpers/mail/mail.py", line 379, in __init__ self.value = valueFile "/usr/local/lib/python2.7/dist-packages/sendgrid/helpers/mail/mail.py", line 395, in value self._value = str(value)UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)sendgrid-python/sendgrid/helpers/mail/mail.py
Line 395 in a5c1561
Setting the encoding of the python document to utf-8 does not resolve/affect this issue. The code is converting unicode values to ascii.