Special Characters in strings not showing correctly ingame
#1

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-
Reply
#2

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
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)