Fwrite problem
#1

This is my code. it can work, but the file is not Chinese characters......

pawn Код:
new h;new mins;new sec;new y,m,d;
    new str[256];new stringer[256];
    getdate(y,m,d);gettime(h,mins,sec);
    format(str,256,"-[%02d:%02d:%02d]- 伺服器正式開機\r\n",h,mins,sec);
    format(stringer,256,"記錄檔案/伺服器/%d-%d-%d 伺服器開機紀錄.log",y,m,d);
    new File:FILE = fopen(stringer,io_append);
    fwrite(FILE,str);
    fclose(FILE);

Код:
-[01:19:43]- ¦шЄAѕ№Ґї¦Ў¶}°т
What happened? How to fix it up?
Reply


Messages In This Thread
Fwrite problem - by billy4601 - 26.03.2010, 17:28
Re: Fwrite problem - by dugi - 26.03.2010, 17:30
Re: Fwrite problem - by billy4601 - 26.03.2010, 17:40
Re: Fwrite problem - by billy4601 - 26.03.2010, 18:12
Re: Fwrite problem - by dugi - 26.03.2010, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)