Skip to content
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

Upgrading to Swift3 version and Utf 8 problem #707

Closed
tolgaytoklar opened this issue Jun 8, 2017 · 2 comments
Closed

Upgrading to Swift3 version and Utf 8 problem #707

tolgaytoklar opened this issue Jun 8, 2017 · 2 comments

Comments

@tolgaytoklar
Copy link

Hi

I was using your client with swift 2.3 and it was working well. Now I updated to latest version of this client for using with Swift 3 and now I have problems with Turkish characters.

My code:

self.socket.on("processmessage") {data, ack in
        if let json = data[0] as? NSDictionary {
             print("message income")
             print(json)
       }
}

Output (Swift 3):

message income
{
message = "\U00c3\U00a7\U00c3\U00a7\U00c3\U00a7";
messageId = 433015;
}

Output (Swift 2.3):

message income
{
message = "ççç";
messageId = 433015;
}

Nothing changed on server side. How can I fix this problem?

Thanks

@nuclearace
Copy link
Member

When you say latest, do you mean v10? If your server is socket.io 1.0 you have to use v9.0.1 of the client. v10 is not backwards compatible with socket.io 1.0.

@tolgaytoklar
Copy link
Author

tolgaytoklar commented Jun 8, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants