-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does IOS client code use isoLatin1? #1087
Comments
What? The client doesn't use isoLatin1, it uses unicode. And the latest version of the client only works with socket.io 2.0, since the way that unicode was encoding changed between 1 and 2. |
The ISO terminal is a small end encoding. |
Once strings get to you, they should be standard Swift strings, which are fully unicode compatible. What issues are you seeing? |
Android and Web Chinese normal, IOS client Chinese garbled, server UTF-8 |
What server version? The current version of the client only supports socket.io 2.0. If your server is 1.0 you will see garbled unicode, since there was a breaking change between 1 and 2. |
hi I have the same problem @nuclearace
When I use NSUTF8StringEncoding to parse callback data ,Chinese is messy code. but ,use NSISOLatin1StringEncoding is right. |
@lianxiang1 What server version? See my above post. |
Other project versions of server 1.7.16 https://github.com/mrniko/netty-socketio |
Looks like that only supports socket.io 1.0, so the current version of the client will not work with it, you'll see your issue. You'll have to use the 1.0 branch. Note that it's no longer supported however. |
Looks like there's an issue on that project about it. mrniko/netty-socketio#566 |
Also just an FYI, this client is only built for the reference implementation of socket.io, which is the node based socket.io. It's up to other vendors to respect the socket.io protocol. |
Thank you |
Why does IOS client code use isoLatin1?
The text was updated successfully, but these errors were encountered: