Skip to content

When socket.io-client > 2.x.x, some unicode characters are broken. #566

Open
@shortstories

Description

Hi.
I found a bug that breaking Unicode characters when trying to communicate as polling.
Especially, XHR polling works normally, and just JSONP polling causes problem.

This problem is related to the commit at socketio/engine.io-parser#81.
Since they remove utf-8 decoding from engine.io-parser, ISO-8859-1 decoded messages are passed to Socket.io event handler.

We can fix this problem by modifying PacketEncoder.processUtf8(). I test this and got expected result. However, in this case, the characters are broken when use socket.io-client 1.x.x.

I don't know if we should change the client codes, or change the server codes, or abandon the 1.x.x legacy codes. Let's consider this problem together.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions