class encodage