Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

Using UTF-16 for your Applications on Linux/UNIX

Using UTF-16 for your Applications on Linux/UNIX

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 9.0
    • Documentation

Because the DataDirect Driver Manager allows applications to use either UTF-8 or UTF-16 Unicode encoding, this means that applications written in UTF-16 for Windows platforms can now also be used on Linux and UNIX platforms.

The Driver Manager assumes a default of UTF-8 applications; therefore, two things must occur for it to determine that the application is UTF-16:

  • The definition of SQLWCHAR in the ODBC header files must be switched from char * to short *. To do this, the application uses #define SQLWCHARSHORT.
  • The application must set the ODBC Environment Attribute SQL_ATTR_APP_UNICODE_TYPE to a value of SQL_DD_CP_UTF16.
TitleResults for “How to create a CRG?”Also Available inAlert