Question: what is the difference between utf-8 and utf-8-bom?
Answer: Short answer: In UTF-8, a BOM is encoded as the bytes EF BB BF at the beginning of the file. ... The character U+FFFE is permanently unassigned so that its presence can be used to detect the wrong byte order. UTF-8 has the same byte order regardless of platform endianness, so a byte order mark isn't needed.