Bug #70851 | #Deleted in MS Access query via ODBC | ||
---|---|---|---|
Submitted: | 7 Nov 2013 8:50 | Modified: | 11 Nov 2013 8:10 |
Reporter: | Sue J | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 5.2.6 | OS: | Windows |
Assigned to: | Bogdan Degtyariov | CPU Architecture: | Any |
[7 Nov 2013 8:50]
Sue J
[11 Nov 2013 8:10]
Bogdan Degtyariov
Hi Sue, Thanks for your interest in MySQL software. This is the expected behavior of Connector/ODBC driver. If you want data to be returned as UTF8 the ANSI version of Connector/ODBC should be used. This is so because UTF8 is a variable-length encoding that does not include \0 bytes and hence cannot be represented as wide characters (SQLWCHAR type) on the client side. Instead of SQLWCHAR it is represented by single-byte characters SQLCHAR treated as UTF8 stream. I know, it is confusing because UTF8 is a sort of Unicode, but it is very special and very different from UTF16, UTF32 or UCS2. This behavior should be documented, so no more users would fall into the same issue.