SA-MP Forums Archive
Special Characters in strings not showing correctly ingame - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Special Characters in strings not showing correctly ingame (/showthread.php?tid=367947)



HELP! Inputting letters like Ж Ш Е into a string without them appearing as ДИ~i - glitchdetector - 11.08.2012

I have been browsing the internet most of the day trying to find a way to make certain letters from a string in the script show correctly. This includes the scandinavian ЖШЕ.

Is there any way to insert characters by their character codes?

Like this:

"SendClientMessage(playerid,COLOR_RED, CharFromCode(x) );"

The problem is that Ш shows as "А," ingame. This only happends when there is a script that prints the character. Players can by no problem print it in chat-


Re: Special Characters in strings not showing correctly ingame - FalconX - 11.08.2012

Quote:
Originally Posted by glitchdetector
Посмотреть сообщение
I have been browsing the internet most of the day trying to find a way to make certain letters from a string in the script show correctly. This includes the scandinavian ЖШЕ.

Is there any way to insert characters by their character codes?

Like this:

"SendClientMessage(playerid,COLOR_RED, CharFromCode(x) );"
Hmm I think yes; if you're talking about UTF8 encoding and decoding, check this thread:

https://sampforum.blast.hk/showthread.php?tid=223944


Re: Special Characters in strings not showing correctly ingame - glitchdetector - 11.08.2012

Quote:
Originally Posted by FalconX
Посмотреть сообщение
Hmm I think yes; if you're talking about UTF8 encoding and decoding, check this thread:

https://sampforum.blast.hk/showthread.php?tid=223944
Hmm, I cant see a way for that to make me able to print any of the Ж, Ш or Е characters.