triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

Unicode problem #52

Closed burawi closed 6 years ago

burawi commented 6 years ago

The package seems to be not parsing data as unicode. Is there any way to emit and receive unicode ?

triniwiz commented 6 years ago

I’m going to guess this is iOS ?

burawi commented 6 years ago

No it's android... When I emit arabic text, Eg: "ق" I get "B" And when I emit this char 'é' the function is not getting called

triniwiz commented 6 years ago

Next release should fix this

burawi commented 6 years ago

thanks

burawi commented 6 years ago

I just found the solution. Upgrade socket.io-client to 1.0.0. In platforms/android/include.gradle change this:

dependencies {
    compile('io.socket:socket.io-client:0.8.2') {
        exclude group: 'org.json', module: 'json'
    }
}

by this:

dependencies {
    compile('io.socket:socket.io-client:1.0.0') {
        exclude group: 'org.json', module: 'json'
    }
}