Today, when the application package is published in WebLogic, the package contains the Chinese path or file name, published the wrong hint of the Times garbled , can't hang up the package!
The output ZH_CN is found through the command Echo $LANG . UTF-8
We need to modify Lang's environment variables to solve this problem!
A. To temporarily resolve, change the current environment variable to execute export lang=zh_cn.gb18030, but the environment variable will change back to the system default after the open terminal is closed.
B. If there is a permanent change, you need to modify the vi/etc/sysconfig/i18n , change Lang to the desired value and save it, such as ZH_CN. GB18030
Finally, reopen the terminal input echo $LANG see if the test Lang environment variable is changed.
After the change is complete, I found that WebLogic re-released the package with Chinese path, success!