miguelgrinberg / Flask-SocketIO-Chat

A simple chat application that demonstrates how to structure a Flask-SocketIO application.
http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent
MIT License
676 stars 242 forks source link

Unicode message seems not work with SSL #18

Closed nguyen-viet-hung closed 6 years ago

nguyen-viet-hung commented 6 years ago

Dear Mr. Miguel,

I follow you answer in Flask-SocketIO, I can make the sample Flask-SocketIO-Chat runs in HTTPS but one thing is that unicode messages are not shown correctly, without HTTPS, it works. Please take a view my code at: https://github.com/nguyen-viet-hung/Flask-SocketIO-Chat.git and help me to get over it.

Thanks

miguelgrinberg commented 6 years ago

What Python version are you using? Can you show me an example the problem?

nguyen-viet-hung commented 6 years ago

I am using Python version 3.6. Here is the message I sent and received:

Sent message: Tôi thử tiếng Việt Received message: Tôi thá»­ tiếng Việt

miguelgrinberg commented 6 years ago

Please try upgrading the Socket.IO JS client to the latest 2.1.0. Let me know if that helps.

nguyen-viet-hung commented 6 years ago

After upgrading the Socket.IO JS client to the latest 2.1.1, it works fine. Thanks!