fwrite() - asian characters broken
#9

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
Reply


Messages In This Thread
fwrite() - asian characters broken - by dax123 - 02.08.2010, 22:00
Re: fwrite() - asian characters broken - by dax123 - 03.08.2010, 05:24
Re: fwrite() - asian characters broken - by bigcomfycouch - 03.08.2010, 05:47
Re: fwrite() - asian characters broken - by dax123 - 03.08.2010, 07:09
Re: fwrite() - asian characters broken - by dax123 - 03.08.2010, 07:30
Re: fwrite() - asian characters broken - by bigcomfycouch - 03.08.2010, 07:57
Re: fwrite() - asian characters broken - by dax123 - 06.08.2010, 00:44
Re: fwrite() - asian characters broken - by XPlatform - 06.08.2010, 06:14
Re: fwrite() - asian characters broken - by Souvlaki - 06.08.2010, 06:44
Re: fwrite() - asian characters broken - by dax123 - 06.08.2010, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)