type test
encoding