gimite/web-socket-js — pull request #117 by TilmanGriesel (2012-07-04 09:27:42+00:00)
Title: encodeURIComponent() after readUTFBytes() results double encoding

After sending chat messages trough the WebSocket I experienced some issues with UTF8 chars (e.g german umlauts).
I found the encodeURIComponent call which encodes the message data to UTF8 and the readUTFBytes call (which encodes the message as well). Both will be called on the same data what leads to double encoding. I removed the encodeURIComponent call and fixed the issue by that.