diff options
author | Mitch Garnaat <mitch@garnaat.com> | 2012-03-27 11:01:24 -0700 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2012-03-27 11:01:24 -0700 |
commit | c6e06d693dde8edfbb6b0dc0401a6e66501a4382 (patch) | |
tree | 33a49eb614c9ab5a0f2a3d05635aeec55664404d | |
parent | b8c7d99a7778cb9fc445712b7e66e5c83cfd28bb (diff) | |
download | boto-c6e06d693dde8edfbb6b0dc0401a6e66501a4382.tar.gz |
Fixing unicode problem.
-rw-r--r-- | boto/sqs/message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/boto/sqs/message.py b/boto/sqs/message.py index 76d89c83..2b6b3b86 100644 --- a/boto/sqs/message.py +++ b/boto/sqs/message.py @@ -150,6 +150,8 @@ class Message(RawMessage): """ def encode(self, value): + if isinstance(value, compat.text_type): + value = value.encode('utf-8') return base64.b64encode(value) def decode(self, value): |