Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Appendix B: Choosing and Preparing a Database Device [Table of Contents]

Configuring Adaptive Server Enterprise for UNIX Platforms

[-] Appendix C: Character Sets, Sort Orders, and Message Language

Appendix C

Character Sets, Sort Orders, and Message Language

Character Sets

By default, Adaptive Server and Backup Server have character set definition files for the character sets shown in Table C-1.

Table C-1: Platforms and their native character sets

Platform

Native Character Set

Digital UNIX

ISO 8859-1

Digital Open VMS Alpha

ISO 8859-1

HP-UX

Roman8

IBM PC

Code Page 437
Code Page 850

IBM RS/6000

ISO 8859-1

Macintosh

Mac

NCR System 3000

ISO 8859-1

Sun Solaris

ISO 8859-1

These character sets support the Western European languages on the specified platforms. Each platform has a native character set. By default, srvbuild installs Adaptive Server and Backup Server with your platform's native character set.

Selecting the Default Character Set

The default character set is the character set in which data is encoded and stored on the Adaptive Server databases. You can select any character set as the default on your Adaptive Server or Backup Server, including character sets that are not native to the platform. Determine Adaptive Server's default character set, based on the character set used by your client. For example, if most of your clients use Code Page 850, specify Code Page 850 on your server to minimize the amount of code conversion that has to occur.

Conversion Between Character Sets

In a heterogeneous environment, Adaptive Server and Backup Server may need to communicate with clients that run on different platforms using different character sets. To maintain data integrity, the server converts the code between the character sets. To enable automatic code conversion, you need to install character set definition files on the server for all the character sets that your clients are using.

Backup Server returns messages to Adaptive Server in the client's language and Adaptive Server's character set. Adaptive Server then converts the messages and issues them in the client's language and character set.

If Adaptive Server or Backup Server does not support a client's language or character set, it issues a warning. Errors also occur if the Backup Server character set is not compatible with the Adaptive Server character set.

Note: Code conversion is supported between character sets for the same language or group of languages only. For example, code conversion is supported between the character sets for the Western European languages (ISO 8859-1, Code Page 437, Code Page 850, Mac, and Roman 8). Similarly, code conversion is supported between the character sets for the Japanese language (EUC-JIS, Shift-JIS, Dec-Kanji). However, code conversion is not supported between the Western European language character sets and the Japanese character sets. For more information about supported conversions, see the System Administration Guide.

Sort Orders

The sort order determines the collating sequence Adaptive Server uses to order data. Each character set comes with one or more sort orders. Sort orders are located in sort order definition files (.srt files) that accompany your character set definition files.

The available sort orders vary, depending on the available character sets. To see what sort orders are available, refer to the sort order= field in the charset.loc file in $SYBASE/charsets/charset_name for each character set you plan to install.

All character sets have a binary sort order. They may also have one or more of the sort orders listed below:

By default, each Western European character set that comes with Adaptive Server and Backup Server comes with the following sort orders:

Table C-2: Sort orders for Western European languages

Language

Available Sort Orders

All Western European languages

  • Binary sort order

English, French, and German

  • Dictionary order, case sensitive, accent sensitive
  • Dictionary order, case insensitive, accent sensitive
  • Dictionary order, case insensitive, accent insensitive
  • Dictionary order, case insensitive, accent sensitive, order with preference

Spanish

  • Dictionary order, case sensitive, accent sensitive
  • Dictionary order, case insensitive, accent sensitive
  • Dictionary order, case insensitive, accent insensitive

Selecting the Sort Order

By default, your server is configured with the binary sort order. The server can support only one sort order at a time, so be sure to select a sort order that will work for all of your clients.

Message Language

By default, U.S. English messages are installed as the default language on Adaptive Server. If your clients require software messages in a language other than English, you must purchase and install the Language Module for those languages.

During the installation of Adaptive Server, you specify a default language for Adaptive Server. If messages are not supported in the client's language, they will receive their messages in the default language. For example, if your client's language is Portuguese, a language for which Sybase does not provide translated messages, and the Spanish Language Module is installed, and Spanish is specified as the Adaptive Server default language, the client receives software messages in Spanish.

Japanese Language Module

The Japanese Language Module includes the following multibyte character sets:

Hankaku Katakana Conversion and Its Limitations

For more information on character sets, see the System Administration Guide and the Adaptive Server Reference Manual.


Appendix B: Choosing and Preparing a Database Device [Table of Contents]