21.10.2016, 16:01
Hey guys, I am having some errors with my function:
I want to write in my native language to the logs in-case someone writes in non-English, it shows me tons of errors and warnings, anyone ?
PHP код:
#undef fwrite
fwrite_utf8(File:handle, str[], bool:use_utf8 = false)
{
if(!handle) return 0;
new x;
while(str[x] != EOS) fputchar(handle, str[x++], use_utf8);
return 1;
}