Endianness is a problem when a binary file created on a computer is read on another computer with different endianness.
Unicode text can optionally start with a byte order mark (BOM) to signal the endianness of the file or stream.