Hi,
I'm currently using CInSim with Visual Studio. I was wondering, how should I use Unicode characters like ąčęėįšųž in IS_MTC and IS_MST?
Here's my "test" message:
Here's the function:
Compiling with chars like "\u0105" output this:
When I run the application, the characters in LFS come up as "?"
Any ideas? Thanks.
I'm currently using CInSim with Visual Studio. I was wondering, how should I use Unicode characters like ąčęėįšųž in IS_MTC and IS_MST?
Here's my "test" message:
Send(ginfo->players[i].UCID, "^3> ^7Char test \u0105 \u012F");
Here's the function:
void Send(byte UCID, char* Message)
{
struct IS_MTC pack_mtc;
memset(&pack_mtc, 0, sizeof(struct IS_MTC));
pack_mtc.Size = sizeof(struct IS_MTC);
pack_mtc.Type = ISP_MTC;
pack_mtc.UCID = UCID;
strcpy(pack_mtc.Msg, Message);
insim.send_packet(&pack_mtc);
}
Compiling with chars like "\u0105" output this:
warning C4566: character represented by universal-character-name '\u0105' cannot be represented in the current code page (1252)
When I run the application, the characters in LFS come up as "?"

Any ideas? Thanks.