Hello,
i try store utf8 strings with UPDATE, INSERT with QT application (ODBC driver) and characters not save propertly.
SET NAMES utf8; not work, any idea?
(libmysql work fine)
code:
query.bindValue(":name", (QString)m_name);
and i try new:
query.bindValue(":name", m_name.toUtf8());
with no effect, this look at problem in driver
but select * work fine...
input:
qpos 2b0c-2f54 ENTER SQLGetData
HSTMT 00C6A0E0
UWORD 2
SWORD -8 <SQL_C_WCHAR>
PTR 0x03B200B0
SQLLEN 102
SQLLEN * 0x0025F958
qpos 2b0c-2f54 EXIT SQLGetData with return code 0 (SQL_SUCCESS)
HSTMT 00C6A0E0
UWORD 2
SWORD -8 <SQL_C_WCHAR>
PTR 0x03B200B0 [ 24] "Petr Vom\ff\ffka"
SQLLEN 102
SQLLEN * 0x0025F958 (24)
result:
qpos 2b0c-2f54 ENTER SQLBindParameter
HSTMT 00C6A0E0
UWORD 1
SWORD 1 <SQL_PARAM_INPUT>
SWORD 1 <SQL_C_CHAR>
SWORD 12 <SQL_VARCHAR>
SQLULEN 14
SWORD 0
PTR 0x03E3BE68
SQLLEN 14
SQLLEN * 0x0025FA60
Bookmarks