UnicodeEncodeError can't encode u2019

UnicodeEncodeError can't encode u2019

I'm using a custom trigger to send an email notification when a request is assigned to a specific group.   The trigger works some of the time, but if the request description contains an apostrophe, then I encounter this error:

Traceback (most recent call last): File "sendemail.py", line 93, in <module> q=sendMailAndGetResponse(configuration,message) File "sendemail.py", line 50, in sendMailAndGetResponse smtpObj.sendmail(fromAdd, toAddList, message) File "D:\python\lib\smtplib.py", line 855, in sendmail msg = _fix_eols(msg).encode('ascii') UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 548: ordinal not in range(128)

I understand this must be an encoding/decoding issue somewhere along the line, but I'm not real sure where to start looking.  I'm using the script and xml file referred in this link:  https://pitstop.manageengine.com/portal/community/topic/script-master-2-how-to-send-custom-email-notifications-to-users

                  New to ADSelfService Plus?