Use a BOM to identify Unicode source files
- Posted by ArthurCrump Feb 17, 2011
- 1497 views
In the recent Wiki article about Unicode plans source files may be confused with early shrouded output. If a Unicode source file was required to begin with a Unicode Byte Order Mark (BOM), could this ever look like the beginning of a shrouded file?
Files with a BOM at the front would begin:
- EF,#BB,#BF if coded in UTF-8, probably the prefered encoding
- FE,#FF if coded in UTF-16 big-endian
- FF,#FE if coded in UTF-16 little-endian