Contents Index Data types Default Unicode mapping

iAnywhere Solutions ODBC Drivers
  iAnywhere Solutions ODBC Driver for Sybase Adaptive Server Enterprise

Unicode support


The Sybase Wire Protocol driver supports Unicode if the Sybase data source you are using to connect to the database is configured to use the UTF-8 character set. The data source is configured to use the UTF-8 character set by either setting the Charset attribute to UTF-8 in the connection string or in the odbc.ini file. See Table 14-1 for more information about the Charset attribute.

If the UTF-8 character set is installed, the driver maps the Sybase data types as follows:

ASE data type... Mapped to...
Char SQL_WCHAR
Unichar SQL_WCHAR
Univarchar SQL_WVARCHAR
Varchar SQL_WVARCHAR
Text SQL_WLONGVARCHAR

This 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.


Contents Index Data types Default Unicode mapping