WebLogic Publish app package, path garbled error &linux modify lang environment variable (solve Chinese garbled problem)

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.