Skip to content
Browse files

Fixing unicode problem.

  • Loading branch information...
1 parent b8c7d99 commit c6e06d693dde8edfbb6b0dc0401a6e66501a4382 @garnaat garnaat committed Mar 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 boto/sqs/message.py
View
2 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):

0 comments on commit c6e06d6

Please sign in to comment.
Something went wrong with that request. Please try again.