fWrite
#1

Hi!
I'm confused because of my problem with signs like "ę", "ą", "ć", "ł" etc. that do not want to show yourself in text file named by my nickname. There's a link to pastebine - http://pastebin.com/ibn3SEAK

At the end I've some "bushes" - Rуїa -> (correctly: Rуża -> in eng Rose). I'm using notepad++ with utf-8 coding but it's not working. Is there any way to get around this? Thank you in advance
Reply
#2

https://sampwiki.blast.hk/wiki/Fputchar

This function can be used to insert non-UFT8 characters.

Example on how to use it in a function:

pawn Код:
fwrite2(File:handle, const string[])
{
    new
        i,
        ch;

    if(!handle)
    {
        return 0;
    }
   
    while((ch = string[i++]))
    {
        fputchar(handle, ch, false);
    }
   
    return 1;
}
Reply
#3

Thank you so much, solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)