03.08.2010, 05:47
From the PAWN manual
Quote:
|
The line reading and writing functions support UTF-8 encoding when the string to read/write is in unpacked format. When the source or destination string is a packed string, the line functions assume ascii or another 8-bit encoding —such as one of the ISO/IEC 8859 character sets (ISO/IEC 8859-1 is informally known as “Latin-1”). |
pawn Код:
new string[128], File:temp = fopen("sample.txt", io_write);
strpack(string, "서버의 정책을 지정합니다.", 128);
fwrite(temp, string) // which means 'assigning a policy for a server' for korean
fclose(temp);

