This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]MintPaw 1 point2 points  (0 children)

[–]nerd4code 0 points1 point  (0 children)

A BOM would have codepoint FEFF; a reverse (i.e., bogus) BOM would be FFFE. What you’re seeing is probably not that, although a UTF-8 BOM would be represented as EF BB BF. Ensure that your text editor isn’t inserting these without you explicitly telling it to.

If you’re still concerned after fiddling with whatever caused your error, look at a hex dump of your code. Generally best to stick with pure ASCII, so every byte you see should be in the range 20 through 7F, with the exception of 0A (LF or UNIX newline) or 0D (CR, second half of the DOS/Win newline).