Re: Unicode support
Nick Gorham <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev