depending on the encoding