12-12-2018 10:45 PM
Chinese scrambling code in cdh6 oozie scheduling shell
Add in the first line of the file
Export LANG = zh_CN.UTF-8
The original code for the old cluster running: Val = md5. digest (encryptStr. getBytes ()) is no problem.
There is a problem with running on the new cluster. The result of the Chinese string. getBytes () is?????? Coding problem, code to add.
Val e = md5. digest (encryptStr. getBytes (Charset. forName ("utf-8"))