There is a great thread about endianess, Unicode, BOM (byte order marks), and other interesting topics.