Permalink
Browse files

fix chinese char problem

  • Loading branch information...
1 parent 68843fd commit 2673aa7e15da2280e8c90700b66823c158f9ecbf @reorx committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 chatroom/app.py
View
@@ -340,7 +340,7 @@ def post(self):
This method is not asynchronous, so each message
append to PollMixin.cache is in time sequence
"""
- msg = self.create_message(self.params.content, self.user['color'])
+ msg = self.create_message(self.params.content.decode('utf8'), self.user['color'])
# add message to message cache
self.insert_to_cache(msg)

0 comments on commit 2673aa7

Please sign in to comment.