How To Set Encoder