Chinese characters

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

bqlf1907
Posts: 25
Joined: 13 May 2013, 10:28

Chinese characters

Postby bqlf1907 » 03 Jun 2013, 16:14

Code: Select all

LoginRequest::LoginRequest(string* userName, string* password, string* zoneName, ISFSObject* parameters)

if userName is English or Number,it's No problem;
but if userName is Chinese,it's not work,and wait a moment ,run in SmartFox::OnSocketClose,
and then crash on my handleEvent function;

Code: Select all

string *reason = ((string*)pEvent->Params()->at("reason"));
bqlf1907
Posts: 25
Joined: 13 May 2013, 10:28

Re: Chinese characters

Postby bqlf1907 » 04 Jun 2013, 12:56

Server Output:
20:23:14,832 WARN [SocketReader] protocol.SFSProtocolCodec - Error deserializing request: java.lang.IllegalStateException: Invalid SFSObject key length. Found = 27908
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: Chinese characters

Postby MBagnati » 06 Jun 2013, 06:18

Today API does not yet support Unicode chars encoding; this is the reason of the crash when you use Chinese strings.
It is already planned the support for Unicode encoding.
It will start just after the delivery of the next API release that will be in the next days.
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: Chinese characters

Postby MBagnati » 11 Jun 2013, 09:12

We have included support for Unicode encoding into API version 0.9.6

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 10 guests