fWrite - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fWrite (
/showthread.php?tid=601760)
fWrite -
7days7 - 25.02.2016
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
Re: fWrite - Emmet_ - 25.02.2016
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;
}
Re: fWrite -
7days7 - 25.02.2016
Thank you so much, solved