![]() | ![]() |
Home |
|
|
Configuring Adaptive Server Enterprise for UNIX Platforms |
|
| Appendix C: Character Sets, Sort Orders, and Message Language |
By default, Adaptive Server and Backup Server have character set definition files for the character sets shown in Table C-1.
Platform | Native Character Set |
|---|---|
Digital UNIX | ISO 8859-1 |
Digital Open VMS Alpha | ISO 8859-1 |
HP-UX | Roman8 |
IBM PC | Code Page 437 |
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.
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.
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.
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:
Do not select "case-insensitive order with preference" unless your installation requires that uppercase letters be sorted before lowercase letters in otherwise equivalent strings for order by clauses. Using "case-insensitive with preference" could cause poor performance in large tables when the columns specified in an order by clause match the key of the table's clustered index.
By default, each Western European character set that comes with Adaptive Server and Backup Server comes with the following sort orders:
Language | Available Sort Orders |
|---|---|
All Western European languages |
|
English, French, and German |
|
Spanish |
|
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.
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.
The Japanese Language Module includes the following multibyte character sets:
Note: Hankaku Katakana conversion is enabled only if Adaptive Server is using EUC-JIS and clients are using Shift-JIS.
select * from table
where column="Hankaku_Katakana_here"
select * from table
where column="Zenkaku_Katakana_here"
For more information on character sets, see the System Administration Guide and the Adaptive Server Reference Manual.
|
|