To determine if code set translation is performed by the DirectConnect access service or by the target host, the values of the three following configuration properties must be considered. Each configuration property is described in the following sections:
DefaultClientCodeset
DefaultTargetCodeset
UseClientCharset
The recommended default values for the three configuration properties are:
DefaultClientCodeset = OpenServerDefault
Default TargetCodeset = OpenServerDefault
UseClientCharset = yes
Using the recommended default values causes no translation to take place by the DirectConnect access service and results in translation at the target, using the client code set value in the client login record.
The list of certified code set identifiers are available in the Unilib Reference Manual Developer’s Kit for Unicode.
OpenServerDefault is the default and becomes the value assigned, by platform, in the server’s locales.dat file.
Code set translation takes place either in the DirectConnect access service or at the target host based on the following relationships:
If the values of the DefaultClientCodeset and the DefaultTargetCodeset are equal, and the UseClientCharset is equal to yes, then translation takes place at the target, using the value from the client login record.
If the values of the DefaultClientCodeset and the DefaultTargetCodeset are equal, and the UseClientCharset is equal to no, then translation takes place at the target host using the DefaultClientCodeset value.
If the values of the DefaultClientCodeset and the DefaultTargetCodeset are not equal, and the UseClientCharset is equal to yes, then translation takes place in DC using the value from the client login record.
If the values of the DefaultClientCodeset and the DefaultTargetCodeset are not equal, and the UseClientCharset is equal to no, then translation takes place at the target host using the DefaultClientCodeset value.
Copyright © 2005. Sybase Inc. All rights reserved. |