encoding class for combobox