Appendix D: Enabling Multibyte Character Support

Follow the instructions in this section to enable multibyte character support. These instructions are written for Simplified Chinese. You can replace the Simplified Chinese coding with the encoding you want to install with.

Solaris

  1. At a command prompt, enter:

    printenv LANG
    

    This displays the value of the LANG environment variable. If you are installing on a Simplified Chinese Solaris system, and LANG is defined as “chinese.” Edit the $SYBASE/locales/locales.dat file, and insert the following line under the “sun_svr4” section:

    locale = chinese, chinese, eucgb
    
  2. Edit the $JAGUAR/Repository/WebApplication/onepage.props file, and insert the following on one line:

    com.sybase.jaguar.webapplication.charset
    .inputparam=(url-pattern=/*,charset=UTF-8)
    
  3. From $JAGUAR/Repository/WebApplication/onepage/config, edit cobrands.xml, by changing

    <CobrandDef rid='1' name='Sybase'
    dir='/fw/cobrands/onepage-1'
    charset='ISO-8859-1'
    	emailCharset='ISO-8859-1'
    emailerSetting='1'
    </CobrandDef>
    

    to

    <CobrandDef rid='1' name='Sybase'
    dir='/fw/cobrands/onepage-1'
    charset='UTF-8'
    emailCharset='<emailcharset>'
    emailerSetting='1'
    </CobrandDef>
    
  4. Go to $JAGUAR/Repository/WebApplication/onepage/config and edit global.properties.xml by setting use_utf8 to true.

  5. Go to the $SYBASE/ASE-12_5/bin directory, and load the Simplified Chinese character set, where servername is the name of the machine on which Adaptive Server is running:

    ./charset -Usa -P -S<servername> binary.srt eucgb
    
  6. Increase the size of the master database, reconfigure Adaptive Server to use the new character set, and shut down the system:

    cd $SYBASE/OCS-12_5/bin
    ./isql -Usa -P -S<servername> 
    alter database master on default = 4
    go
    sp_configure "default character set id", 170, bin_eucgb
    go
    shutdown
    go
    
  7. Restart Adaptive Server twice:

    cd $SYBASE/ASE-12_5/install
    ./RUN_<servername>
    ./RUN_<servername>
    

    Do not close the window after you start Adaptive Server the second time.

  8. Install the Simplified Chinese Adaptive Server messages:

    cd SYBASE/ASE-12_5/bin
    ./langinstall -Usa -P -S<servername> chinese eucgb
    
  9. Insert the CD labeled “Sybase Enterprise Portal 6.0,” and install the software.