sendChat ruins character encoding, is there any way around this?

0 votes
So basically I'm making a game with a chat, if I try to send characters like å,ä,ö or the likes through sendChat they come out ruined on the other side. I'm guessing there's an issue where either the method in warpclient sending the string or receiving it is changing encoding from UTF-16.

Using Java and sdk 1.5.5.

Noteworthy is that appwarp's chat example http://appwarp.shephertz.com/wp-content/themes/twentytwelve/Demo/html5chat/ has the same issue.

Can I get around this in any way?
asked May 3, 2014 in AppWarp by Claudius (11 points)

1 Answer

+1 vote
You can use sendUpdatePeers instead of chat. So simply send and receive the string in bytes and then you can encode/decode in the character set of your choice.
answered May 3, 2014 by dhruvc (1,099 points)
That kind of defeats the purpose of having sendchat in the first place. oh well.
Another approach is that you can base64 encode/decode the strings when you pass/receive them from the AppWarp SDK.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...