using the sadeEncoding function to surport Chinese