Configuring Japanese Settings for Linux

This topic describes how to configure Japanese language settings for Linux.

This task shows you how to:

Configure Language Settings

To configure your system to use the Japanese language:

  1. Modify the LANG setting for the operating system.

    For Solaris use: ja_JP.PCK

    For RHEL/SuSE use: ja_JP.SJIS

    On Linux, the NLS_LANG value is set in the mxEnv.sh file in SERVERHOME/scripts/.

  2. In the mxEnv.sh file, change the line:

    NLS_LANG=_UTF8

    to:

    NLS_LANG=JAPANESE_JAPAN.JA16SJIS
    

  3. Next, set the character set to Shift_JIS:

    MX_CHARSET=Shift_JIS
    

  4. In the SERVERHOME/distrib/enovia/WEB-INF/classes/ESAPI.properties file, also change the following settings:

    Encryptor.CharacterEncoding=Shift_JIS
    HttpUtilities.ResponseContentType=text/html;charset=csWindows31J
    

    When the Encryptor.CharacterEncoding setting is changed from the default of UTF-8 to Shift_JIS, the HttpUtilities.ResponseContentType setting must also be changed to csWindows31J for the Shift_JIS configuration in a Japanese environment.

  5. Finally, add the following lines to the mxEnv.sh file:

    <mxEnv.sh>
    LANG=ja_JP.PCK
    export LANG
    LC_TIME=C
    export LC_TIME
    

Configure Date and Time Format Settings

To configure the date and time format for your system for use in Japanese:

Add the following lines to mxEnv.sh in the SERVERHOME/scripts/ directory:

<mxEnv.sh>
MX_NORMAL_DATETIME_FORMAT="moy/dom/yr4 h24:min:sec"
export MX_NORMAL_DATETIME_FORMAT

For more information on how the date and time format settings affect your system, see Configuring Date and Time Formats.

Configure Tcl Settings

To configure Tcl settings for use in Japanese:

Create the links for libtcl8.5.so and libtk8.5.so libraries in SERVERHOME/ <platform>/code/lib/ (LD_LIBRARY_PATH):

% cd /SERVERHOME/<platform>/code/lib
% ln -s/SERVERHOME/<platform>/code/bin/libtcl8.5.so
     libtcl8.5.so
% ln -s/SERVERHOME/<platform>/code/bin/libtk8.5.so libtk8.5.so

The Tcl 8.5.7 library is installed and configured as the default version of Tcl with installation of the desktop applications. For more information on TCL support, see Tcl Support.