test encode
test encode