table continued encoder description 'utf- -le'utf- -be'unicode-escapeutf- but with explicit little endian encoding utf- but with explicit big endian encoding same format as "stringsame format as ur"string'raw-unicode-escapethe following sections describe each of the encoders in more detail 'asciiencoding in 'asciiencodingcharacter values are confined to the ranges [ , fand [ + + fany character outside this range is invalid 'iso- - ''latin- encoding characters can be any -bit value in the ranges [ , xffand [ + + ffvalues in the range [ , fcorrespond to characters from the ascii character set values in the range [ , xffcorrespond to characters from the iso- - or extended ascii character set any characters with values outside the range [ , xffresult in an error 'cp encoding this encoding is similar to 'iso- - but is the default encoding used by python when it runs as console application on windows certain characters in the range [ , xffcorrespond to special symbols used for rendering menuswindowsand frames in legacy dos applications 'cp encoding this is an encoding that is very similar to 'iso- - used on windows howeverthis encoding defines characters in the range [ - fthat are undefined in 'iso- - and which have different code points in unicode 'utf- encoding utf- is variable-length encoding that allows all unicode characters to be represented single byte is used to represent ascii characters in the range - all other characters are represented by multibyte sequences of or bytes the encoding of these bytes is shown hereunicode characters byte byte byte + + + + ff + +ffff nnnnnnn nnnnn nnnn nnnnnn nnnnnn nnnnnn for -byte sequencesthe first byte always starts with the bit sequence for -byte sequencesthe first byte starts with the bit sequence all subsequent data bytes in multibyte sequences start with the bit sequence in full generalitythe utf- format allows for multibyte sequences of up to bytes in python -byte utf- sequences are used to encode pair of unicode characters lib fl ff