So? What do you think is happening when you apply a unicode encoder to a file not encoded with unicode?
If using integers, read four bytes and "OR" them into an integer( = 0) in the appropriate place.Code:Using the big-endian and little-endian methods, the number 0x12345678 would be stored as shown in the following table. Byte order Byte 0 Byte 1 Byte 2 Byte 3 Big-endian 0x12 0x34 0x56 0x78 Little-endian 0x78 0x56 0x34 0x12





Reply With Quote