osuosl / formsender

Simple script to email form submissions.
Apache License 2.0
3 stars 1 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 646: ordinal not in range(128) #87

Closed ramereth closed 6 years ago

ramereth commented 6 years ago

https://sentry.io/osuosl/formsender-prod/issues/525386195/

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 646: ordinal not in range(128)
(4 additional frame(s) were not displayed)
...
  File "formsender/request_handler.py", line 64, in wsgi_app
    response = self.dispatch_request(request)
  File "formsender/request_handler.py", line 54, in dispatch_request
    return getattr(self, 'on_' + endpoint)(request, **values)
  File "formsender/request_handler.py", line 94, in on_form_page
    return self.handle_no_error(request)
  File "formsender/request_handler.py", line 160, in handle_no_error
    send_email(format_message(message), set_mail_subject(message),
  File "formsender/request_handler.py", line 392, in format_message
    msg[key]))

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 646: ordinal not in range(128)
ramereth commented 6 years ago

#30030: Internal Error when Submitting OpenPOWER OpenStack Request Form