Got support for encoding 4 digit scalers

Signed-off-by: shrimpboyho <shrimpboyhoftw@gmail.com>