Hitachi

Hitachi Advanced Database Application Development Guide


15.1.3 About conversion of character encoding

Organization of this subsection

(1) Character encoding conversion processing

The ODBC driver provided by HADB supports ODBC 3.5 that includes the MS-Unicode interfaces.

When an SQLxxxW function, which is an MS-Unicode interface, is used, the ODBC driver performs conversion between the MS-Unicode character string data and the character encodings supported by HADB.

The following figure shows how the ODBC driver performs conversion between MS-Unicode character string data and the character encodings supported by HADB.

Figure 15‒2: Conversion between MS-Unicode character string data and the character encodings supported by HADB

[Figure]

Explanation:
  1. When the character encoding is converted from an application program to the HADB server for processing, the ODBC driver uses an SQLxxxW function to convert MS-Unicode character string data to an HADB-supported character encoding, and then passes the processing to the HADB server.

  2. When the character encoding is converted from the HADB server to an application program for processing, the ODBC driver uses an SQLxxxW function to convert the HADB-supported character encoding to MS-Unicode character string data, and then outputs the results to the application program.

HADB supports the following character encodings:

(2) Notes