Closed Autorojo closed 4 years ago
Works fine on a gamemode/filterscript with UTF-8 encoding. But in a ISO 8859-1 encoding gamemode it returns these errors
Why can't you just use UTF-8 encoding?
Works fine on a gamemode/filterscript with UTF-8 encoding. But in a ISO 8859-1 encoding gamemode it returns these errors
Why can't you just use UTF-8 encoding?
Because all the acute accents, tildes, etc, brokes in a UTF-8 encoded gamemode.
For example, this code:
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, -1, "á é í ó ú ñ Á É Í Ó Ú Ñ");
return 1;
}
Looks like this:
I think that's because of the OS options of all native spanish speakers. See this and this.
Try that, please.
pawncmd.zip (commit https://github.com/urShadow/Pawn.CMD/commit/01a9ae4219e74302853c74fdc9e4723421530f67)
Try that, please.
pawncmd.zip (commit 01a9ae4)
That works perfect with the properly LocaleName
configuration in pawncmd.cfg
.
It seems to be solved. Great job!
I'm getting errors in command aliases since 3.3.0.
For example, this code:
Works fine on a gamemode/filterscript with UTF-8 encoding. But in a ISO 8859-1 encoding gamemode it returns these errors:
And the callback
OnPlayerCommandReceived
sometimes cuts thecmd[]
string. So, if the command it's something like/hellowórld
, the callback returns acmd[]
string likehellow
.I tried using
LocaleName = "es_ES.ISO8859-1"
inpawncmd.cfg
but it does nothing.