The eight bit sequence is supplied to a run length encoder 10 in which repeated characters are replaced by a shorter representation, i.e. repeated characters are replaced by encoded sequences of three symbols, of which the first is the character itself, the second is a control character (designated here RC) indicating a run, and the third is the number of occurrences of the character in the run.