03.02.2013, 12:59
I don't know if there is any more effective method of correctly displaying utf8 characters, but for now I'm using https://sampforum.blast.hk/showthread.php?tid=223944 plugin.
Prints "żуłw" and some bushes as expected. Now when I want to shorten the code a little ("Е»ГіЕw" is utf8 encoded "żуłw"):
Bam! Server crash.
The pwn document is encoded in _ascii_ - only this way I get the correct characters to show up. Is there some other way of handling nonascii charsets?
pawn Код:
main() {
new str[32];
UTF8_Encode("żołw", str, sizeof str);
UTF8_Decode(str, str, sizeof str);
printf(str);
printf("żуłw");
}
pawn Код:
main() {
new str[32];
UTF8_Decode("Е»ГіЕw", str, sizeof(str));
printf(str);
}
The pwn document is encoded in _ascii_ - only this way I get the correct characters to show up. Is there some other way of handling nonascii charsets?