[unixODBC-dev] Unicode support

Nick Gorham nick at lurcher.org
Mon Aug 17 19:53:38 BST 2009


SHANKAR Uma wrote:
>
> Hi,
>
> We are using MySql/unixODBC on linux. I am converting UTF8 strings to 
> Unicode using unixODBC on linux. The same seems to work fine on 
> Windows. The UTF8 strings are converted to Unicode using the 
> “mbstowcs” function using wchar_t’s. There does not seem to be problem 
> in the conversion . Once the wide-char string is fed to the driver, 
> all I see is the first char of the wide-char being written to the db.
>
> As an example , I have:
>
> Insert into <table> (a) value “WideStr”;
>
wchat_t are 4 bit on unix, unixODBC uses the same 16 bit unicode as on 
windows. Try using iconv to convert to UCS-2

-- 
Nick


More information about the unixODBC-dev mailing list