StrByCharset

Description

Specifies whether string conversion between DataWindow Designer (Unicode) and the OCI client (multibyte) is based on the current OS code page or an Oracle character set.

Applies to

Syntax

StrByCharset='value'

Parameter

Description

value

Specifies whether string conversion between DataWindow Designer and the OCI client is based on the current OS code page or an Oracle character set. Values are:

  • 0 (Default) String conversion is based on the current OS code page.

  • 1 String conversion is based on the Oracle character set specified by the NLS_Charset database parameter.

Default

StrByCharset=0

Usage

The StrByCharset database parameter is ignored if NLS_Charset is set to Unicode because both DataWindow Designer and the OCI client use the UTF-16 format. When NLS_Charset is set to another value, you must set StrByCharset to 1 if the character set on the client is incompatible with the OS code page.


Example 1

With these settings:

The Oracle client and server character sets match, so all string data from the client can be sent to the server and fetched back directly, even if some characters do not belong to the WE8ISO8859P1 character set but are within code page 1252, because no string conversion happens between the Oracle client and server. All string data can be displayed using the OS code page. If StrByCharset is set to 1, when string data is converted between the OCI client (ANSI) and DataWindow Designer (Unicode), characters that are not in the WE8ISO8859P1character set are not converted correctly.


Example 2

With these settings:

The client and server character sets match. All string data, including Korean characters, are sent or received one byte at a time so no data is lost. Using the Korean OS code page, all Korean string data can be converted from ANSI to Unicode safely with StrByCharset set to 0.


Example 3

With these settings:

Because characters in the ZHT16BIG5 character set do not belong to code page 1252, string data conversion must be based on the ZHT16BIG5 character set.

Examples

Example 1

To specify that the OCI client should use the current character set defined by the NLS_LANG parameter on the local computer to store string datatypes:

See also

NLS_Charset