pawn Код:
#define fwrite fwrite_utf8
//here your whole code
/*and at the bottom of your script*/
#undef fwrite
stock fwrite_utf8(File:handle, str[], bool:use_utf8 = false)
{
new x=0;
if(!handle) return 0;
while(str[x] != EOS) {
fputchar(handle, str[x], use_utf8);
x++;
}
return x;
}
Then fwrite will be able to write in utf-8 characters.But it will crash on linux :S