skip to main content
Connection Properties Reference : Enable WChar Support
 

Try DataDirect Cloud Now

Enable WChar Support

Attribute

EnableWCharSupport (EWS)

Purpose

Specifies whether the driver maps character data to the ODBC Unicode data types, such as WCHAR, WVARCHAR, or WLONGVARCHAR. By default, the driver maps character data to the ODBC Unicode data types, sometimes called W-Types. DataDirect Cloud always returns character data as Unicode, using the UTF-8 character encoding.
Some applications do not support the Unicode data types. When using this type of application, disable the Enable WChar Support option. The driver then maps character data to an ANSI Char type, such as CHAR, VARCHAR, or LONGVARCHAR.

Valid Values

1 (Enabled) | 0 (Disabled) 

Behavior

If set to 1 (Enabled), the driver maps character data to the ODBC W-types, such as WCHAR, WVARCHAR, or WLONGVARCHAR. Character data is returned in Unicode when retrieved as SQL_C_DEFAULT.
If set to 0 (Disabled), the driver maps character data to a Char type, such as CHAR, VARCHAR, or LONGVARCHAR. Character data is returned in IANAAppCodePage.

Default

1 (Enabled). The driver maps character data to the ODBC Unicode types.

GUI Tab

Advanced tab