cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Opening Unicode files
Opening Unicode files
Jan 3, 2011 at 2:38am UTC
majidkamali1370
(241)
Hi.
I created a .txt file and wrote in it "Hello World" (without double quotation) and saved it with Unicode Encoding.(Little Endian)
When I open it in C++, the first two bytes are 0xFF and 0xFE. what are these?
Thanks :-)
Jan 3, 2011 at 3:32am UTC
Disch
(13742)
It's the BOM:
http://en.wikipedia.org/wiki/Byte_Order_Mark
Basically it identifies the file endianness. FF followed by FE indicates little endian, whereas FE followed by FF indicates big endian.
Jan 3, 2011 at 9:30am UTC
majidkamali1370
(241)
Thank you very much :-)
Topic archived. No new replies allowed.