[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sapdb-general
Subject:    RE: odbc driver under *nix
From:       "Koetter, Thomas Theodor" <thomas.theodor.koetter () sap ! com>
Date:       2004-08-09 8:34:06
Message-ID: B8FA8397DC482449B5A4BE230E98B1182AE438 () dewdfe11 ! wdf ! sap ! corp
[Download RAW message or body]

Hi Arash

> -----Original Message-----
> From: Arash Bijanzadeh [mailto:a.bijanzadeh@linuxiran.org]
> Sent: Samstag, 7. August 2004 08:58
> To: maxdb@lists.mysql.com
> Subject: odbc driver under *nix
> 
> 
> "The use of the ODBC driver is currently not possible on 
> platforms for which 
> the standard UNICODE type WCHAR_T with four bytes is defined."

For the MaxDB-ODBC driver SQLWCHAR is defined as UCS2.
I.e. a character consists of two bytes. On Unix/Linux the
native wide character has mostly four bytes. Therefore you cannot
send directly those strings to the MaxDB ODBC driver.

A workaround is to define a crude conversion from
UCS2 <-> UCS4 forgetting the surrogate stuff.
Since MaxDB does not take surrogates into account this wouldn't
add problems to your application.


HTH  Thomas


----------------------------------------------
Dr. Thomas Kötter
SAP AG, SAP Labs Berlin


Do you know SAP^H^H^H MaxDB ?                   www.sapdb.org 


 

-- 
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/maxdb?unsub=sapdb-general@progressive-comp.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic