反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Linux System Code Modification

  • Recent Updates: August 24, 2022
  • Ⅰ. Description

    The default encoding of the system in the Linux server is  en_US.UTF-8 , and the default Chinese encoding in FineBI is zh_cn.UTF-8 , so there will be garbled characters when exporting Excel in BI applications, so the encoding of the Linux system should be changed to zh_CN .UTF-8 . Modification methods include global modification and local modification.

    Ⅱ. Global modification

    Global modification is a modification method that is effective for the entire system, so that the entire system is adapted to the system code. The method is to add the encoding method in the system configuration file to overwrite the default method. The command executed is as follows:

    vi /etc/profile

    After opening the file, add the following command on the last line:

    export LC_ALL="zh_CN.UTF-8" export LANG="zh_CN.UTF-8"

    After saving and exiting, execute the command to take effect of the file:

    source /etc/profile

    Modification is complete.

    Ⅲ. Local modification

    Sometimes the code in the Linux system cannot be used uniformly, but the code is only used for a certain user, that is, when FineBI is used, the code can only be used under the system user. Therefore, when editing the configuration file, you need to edit it under this user.

    To set the encoding for user wind, execute the following command:

    vi /home/wind/.bash_profile

    On the last line enter:

    export LC_ALL="zh_CN.UTF-8" export LANG="zh_CN.UTF-8"

    Execute the source command again:

    source /home/wind/.bash_profile

    Note: ./bash_profile is a file that each user can use to enter specific shell information for their own use.

    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭