[Qt-interest] odbc driver and unicode support

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Thu Feb 4 12:16:46 CET 2010


Hi all,

I have mysql and odbc/connector under windows 
Both should be able to support utf8.

However the data returned to Qt does not show properly.  I.e. binary the data 
is present (utf8 character is there) but it is not translated to the proper 
character (binary character remain in output string).

I ran driver->hasFeature( QSqlDriver::Unicode) on the odbc driver and it 
returns FALSE.  Is that because the odbc driver of Qt is not compiled with 
unicode support or that the underlying odbc driver (here mysql connector) does 
not support unicode ?).

I use the Qt 4.6.1 -mingw32 version downloaded from Qt site.


W



More information about the Qt-interest-old mailing list