A variable-width encoding is a type of character encoding scheme in which codes of different lengths are used to encode a character set for representation in a computer . A variable-width encoding is a type of character encoding scheme in which codes of differing lengths are used to encode a character set ( a repertoire of symbols ) for representation in a computer .