maddinat0r / samp-tsconnector

A plugin for SA-MP to control a Teamspeak3 Server from the gamemode
MIT License
17 stars 3 forks source link

The plugin doesn't support Russian letters #17

Open impuLseUZ opened 7 years ago

impuLseUZ commented 7 years ago

The plugin doesn't support Russian letters , please fix it. For example: TSC_SendClientMessage(TSC_GetClientIdByUid("K+fJTkRtARxyUJczCELIxGBvI9Q="), "привет");
Log: ID: 1538 Text: error while executing "sendtextmessage targetmode=1 target=1 msg=привет": invalid parameter

Southclaws commented 7 years ago

Discord is native Unicode so this should be handled in the plugin (SA:MP is ANSI unfortunately so conversion will be needed).

impuLseUZ commented 7 years ago

can you show an example ?

Southclaws commented 7 years ago

Not sure what you want an example of, I'm not a contributor to this repo, just chiming in with some info!

Most modern apps are/should be Unicode these days, which handles every modern written language. Unfortunately, SA:MP is old and uses simple 8-bit ANSI which are looked up on your client using a Russian codepage. Conversion would be trivial though so it won't be a huge problem however I think the server would need the Windows codepages to perform the mapping from Russian Unicode characters to ANSI codepoints on a Russian codepage.