fwrite() - asian characters broken
#3

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);
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)