PDA

View Full Version : Adding the UTF-8 support


CKA3KuH
25/03/2015, 10:02 PM
Will be great if you add support for the UTF-8 encoding. I very often face with the incorrect encoding in the gamemode when my files have been saved in the UTF-8 encoding. For understanding the problem please see attached screenshot. Thanks in advance!

n0minal
25/03/2015, 10:10 PM
AFAIK sa-mp only supports ASCII encoding, i tried to use some kind of UTF-8 to do my gamemode in multilanguage and f*ked up all my accents from other languages.

SickAttack
25/03/2015, 10:12 PM
This happens to me too with the character "•".

ev0lution
25/03/2015, 11:35 PM
This would be insane amounts of work, and it would have to be hacked into GTA itself.

Abagail
25/03/2015, 11:43 PM
Then don't save your files in UTF coding, I have never faced this issue ever before. Pawno will never do you wrong, but notepad will do whatever you tell it to.

CKA3KuH
28/03/2015, 05:02 PM
UTF-8 is a most popular encoding. Please see following graph.
http://upload.wikimedia.org/wikipedia/commons/a/a9/UnicodeGrow2b.png
Graph indicating that UTF-8 (light blue) exceeded other main encodings of text on the Web in December 2007, and that by 2010 it was nearing 50% (and up to 83% in March 2015[2]). Encodings were detected by examining the text, not from the encoding tag in the header,[3] thus does not include ASCII tagged as UTF-8. As ASCII is valid UTF-8 it could be added to the UTF-8 to get over 65% usage in 2010.

rickisme
29/03/2015, 08:47 AM
+1, really need this

mariocarver
29/03/2015, 01:30 PM
very good idea

n0minal
29/03/2015, 02:26 PM
Then don't save your files in UTF coding, I have never faced this issue ever before. Pawno will never do you wrong, but notepad will do whatever you tell it to.

+1, makes no sense change entirely the game encoding instead change only the way of scripters save our scripts, i don't agree with this idea.

ikkentim
29/03/2015, 03:40 PM
What is the point? SA-MP supports every charset, as long as the user turns it on. Russian people have set their system language to Russian, therefore Cyrillic is displayed on their screen. What's the point of showing me, some random Dutch guy, Russian gibberish I can't understand.

Besides, GTA SA is an ANSI based game, it would mess stuff up if the mods were UTF-8
http://forum.sa-mp.com/showpost.php?p=1073428&postcount=3

Kar
29/03/2015, 04:18 PM
GTA SA is an ANSI program, it can't support Unicode. You can't force it to use Unicode either or it will crash. It can support non-English characters through the ANSI code page in Windows, and through UTF-8, but all players on the server must be using the same code page.

Maybe this helps?

http://budda.cau.ac.kr/~dongsin/rect_img/xp_eng2kor/pic7.png http://usidisk.com/club_new/img/usiclub/16030039/xp-korean_1246548741.jpg

There are also language packs (not Microsoft) you can install in Windows that will force programs to use Unicode. These will not work with GTA SA.

^^^^