Gets an encoding for the UTF-16 format that uses the big endian byte order which encodes multi-byte Unicode characters by putting the left-most 8 bits in the first byte, the next 8 bits in the second byte, etc.
UTF-8
object
Gets an encoding for the UTF-8 format. Signifies that a character may be represented by between 1 and 4 bytes. The first 128 characters match those of the ASCII character set, so an ASCII file can be treated as a UTF-8 file with each character stored as a single byte.
Unicode
object
Gets an encoding for the UTF-16 format using the little endian byte order which encodes multi-byte Unicode characters in the standard way, by putting the right-most 8 bits in the first byte, the next 8 bits in the second byte, etc.