You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Hi,
I am writing a realtime web application with SockJSSubscriber.
When I send a unicode string that exceed ASCII's coding range, like Chinese character, there will raise UnicodeEncodeError Exception on 'tornadoredis/pubsub.py", line 146, in on_message'.
[Solutions]
I inherit a SockJSSubscriber and overwrite the on_message to encode the msg.body to str, and it work well.
The text was updated successfully, but these errors were encountered:
Hi,
I am writing a realtime web application with
SockJSSubscriber
.When I send a unicode string that exceed ASCII's coding range, like Chinese character, there will raise
UnicodeEncodeError
Exception on 'tornadoredis/pubsub.py", line 146, in on_message'.[Solutions]
I inherit a SockJSSubscriber and overwrite the on_message to encode the
msg.body
to str, and it work well.The text was updated successfully, but these errors were encountered: