Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Problems with UTF-8 strings

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 10th Mar 2017 07:39 Edited at: 10th Mar 2017 07:40
Since the UTF-8 update I haven't been able to send compressed string data with agk::AddNetworkMessageString.

This is the compressed data I send: 16.0.ŸKŸKŸKŸKŸKŸKŸKŸKŸKŸK
This is the data I receive: 16.0.ŸKŸKŸKŸKŸKŸKŸKŸKŸKŸK

Any ideas? I may remove the data compression if there isn't another way to fix.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th Mar 2017 14:17
The data you are receiving is the UTF8 encoded version of the string you are sending. Are you receiving the data with AppGameKit or some other network client?
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 10th Mar 2017 14:47
Its AppGameKit on both the server and client sides. I'm using windows btw. I'm still using a template from a older version of appgamekit, Im going to try updating that and trying it again.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th Mar 2017 15:49
I've just noticed you are using Tier 2, in that case you'll have to be careful with char* arrays, AppGameKit will convert them to UTF8 internally. If you construct an AGK::uString from the char* then you can manipulate it as a UTF8 string.

Login to post a reply

Server time is: 2024-11-24 19:50:39
Your offset time is: 2024-11-24 19:50:39