socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

Emoji's are not working

Open PrinceBE opened this issue 7 years ago • 3 comments

I am Emitting some messages to server appended with emoji's, if i append certain emoji's to that messages its not getting delivered to server. other than that emoji's others are working. If someone can help me understand why it is ?

for eg: if emit :sob: this emoji its working fine, if i emit :smiley: this emoji its not getting delievered at server side.

PrinceBE avatar Aug 10 '17 14:08 PrinceBE

The example works fine with these emoji, you can try https://github.com/nkzawa/socket.io-android-chat

felipeska avatar Aug 14 '17 19:08 felipeska

you can use UTF8.encode(emojiString)

edited :

Don't use UTF8.encode(Str) it will just break the characters. I have just realized that my emit was inside my onConnect, and so i tried to wrapped it with new Handler(Looper.getMainLooper()) then add delay to it then it works fine now.

so maybe emitting needs to be in higher thread or allowing socket to process your message with emoji

gwaixin avatar Apr 12 '18 05:04 gwaixin

any solution for this my obj in call is {"message":"\u0006"}, and this is appearing as blank at my end.

Naveenkant93 avatar Dec 01 '20 11:12 Naveenkant93