Anything from completely brain-damaged (XER) over cheap (GSER or BER, depending on whether you want widely-used or human-readable) to nasty (PER) depending on what encoding rules you use.