[Include] i_lstr - Length-prefixed backward-compatible strings
#4

Quote:
Originally Posted by OneDay
View Post
What about text like привет?
SA-MP uses ANSI strings, which means the characters with codes from 128 to 255 are displayed based on your system's language settings. "привет" are letters from the upper half of the character set, so players from different countries will probably see some gibberish instead of these characters. But in ANSI and the correct codepage, they are supported by this include, if that's what you ask.

I would love to be able to use characters like "č", "п" and "銭" in one string, but unfortunately neither the SA-MP client nor the server supports this. However, thanks to the technique I use in this include, they can be represented in Pawn using encodings like UTF-8, UTF-16 or UTF-32. I am going to create a plugin that can handle Unicode strings some day.
Reply


Messages In This Thread
i_lstr - Length-prefixed backward-compatible strings - by IllidanS4 - 24.04.2017, 21:44
Re: i_lstr - Length-prefixed backward-compatible strings - by PT - 25.04.2017, 00:03
Re: i_lstr - Length-prefixed backward-compatible strings - by OneDay - 25.04.2017, 14:11
Re: i_lstr - Length-prefixed backward-compatible strings - by IllidanS4 - 25.04.2017, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)