Unicode Support

The Sybase Wire Protocol driver maps the Sybase data types to Unicode data types as shown in the following table:

Sybase Data Type
Mapped to...
CHAR1
SQL_WCHAR
SYSNAME1
SQL_VARCHAR
TEXT1
SQL_WLONGVARCHAR
UNICHAR2
SQL_WCHAR
UNITEXT3
SQL_WLONGVARCHAR
UNIVARCHAR2
SQL_WVARCHAR
VARCHAR1
SQL_WVARCHAR
1 This data type is available only if the data source is configured to use the UTF-8 character set.
2 On Sybase 12.5 servers, this data type is available only if the data source is configured to use the UTF-8 character set. On Sybase 12.5.1 and higher servers, this data type is always available, even if the data source is not configured to use the UTF-8 character set.
3 This data type is available on Sybase 15 and higher servers only.

For data types that require the UTF-8 character set, see Table 9-1 for more information about the Charset connection string attribute.

The driver supports the Unicode ODBC W (Wide) function calls, such as SQLConnectW. This allows the Driver Manager to transmit these calls directly to the driver. Otherwise, the Driver Manager would incur the additional overhead of converting the W calls to ANSI function calls, and vice versa.

See "UTF-16 Applications on UNIX and Linux" for related details. Also, Refer to "Internationalization, Localization, and Unicode" in the DataDirect Connect64 for ODBC and Connect64 XE for ODBC Reference for a more detailed explanation of Unicode.