You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug with Cyrillic alphabet flips every 4 bytes in format() and %q #1143
In format() function %q breaks the Cyrillic alphabet, flips every 4 bytes. If you add an ASCII symbol first, for example, a space, the problem is solved.
There is no such problem with %q in standard SA:MP server
{ // %q
new string[100];
new name[] = "Привет мир";
format(string, sizeof(string), "Test string '%q'", name);
printf(string);
}
{ // space + %q
new string[100];
new name[] = " Привет мир";
format(string, sizeof(string), "Test string '%q'", name);
printf(string);
}
{ // %s
new string[100];
new name[] = "Привет мир";
format(string, sizeof(string), "Test string '%s'", name);
printf(string);
}
OUTPUT
2025/07/25 17:19:31 [Info] Test string 'вирПм те'
2025/07/25 17:19:31 [Info] Test string ' Привет мир'
2025/07/25 17:19:31 [Info] Test string 'Привет мир'
changed the title [-]Bug with Cyrillic alphabet, with format() and %q[/-][+]Bug with Cyrillic alphabet flips every 4 bytes in format() and %q[/+]on Nov 16, 2025
Activity
[-]Bug with Cyrillic alphabet, with format() and %q[/-][+]Bug with Cyrillic alphabet flips every 4 bytes in format() and %q[/+]SimoSbara commentedon Dec 18, 2025
Hello, which file encoding are you using in your source code?
AmyrAhmady commentedon Dec 27, 2025
Fixed and will be available in the next release