기타

How to write unicode text file

김모작자 2012. 1. 10. 11:00
The core is writing header with special signature 'FF FE'.

The program supports unicode like 'notepad' reads two bytes of the beginning of file.

0xFF 0xFE 00 00 00 00 00   

it means this file was made of UNICODE(2byte) charset.

--------

THE BELOW IS PERFECT REFERENCE :
http://en.wikipedia.org/wiki/Byte_order_mark