encoding in reference.table