- May
- 13,741
- 209
When QueryIsFileUnicode is used on a disk file and a BOM is found, the function seems to leave the file pointer positioned after the BOM. Is that correct?
Besides looking for a BOM, what else does QueryIsFileUnicode do? I ask because it fails to identify a file containing only this line (below), woth no BOM, as Unicode.
Besides looking for a BOM, what else does QueryIsFileUnicode do? I ask because it fails to identify a file containing only this line (below), woth no BOM, as Unicode.
Code:
0000 0000 61 00 20 00 3e 00 20 00 62 00 20 00 3c 00 20 00 a. .>. .b. .<. .
0000 0010 63 00 20 00 26 00 20 00 64 00 20 00 7c 00 20 00 c. .&. .d. .|. .
0000 0020 65 00 20 00 60 00 20 00 66 00 20 00 25 00 66 00 e. .`. .f. .%.f.
0000 0030 6f 00 6f 00 20 00 25 00 70 00 61 00 74 00 68 00 o.o. .%.p.a.t.h.
0000 0040 0d 00 0a 00 ....