Permalink
Browse files

Encode messages as UTF8 before base64 encoding

  • Loading branch information...
1 parent 4986f61 commit bb236eca4a5a5aeb7d572b80b9bd80b0357c9fac @davidmarble davidmarble committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 boto/ses/connection.py
View
@@ -278,7 +278,7 @@ def send_raw_email(self, raw_message, source=None, destinations=None):
"""
params = {
- 'RawMessage.Data': base64.b64encode(raw_message),
+ 'RawMessage.Data': base64.b64encode(raw_message.encode('utf-8')),
}
if source:

0 comments on commit bb236ec

Please sign in to comment.