Bug #32627 | double recoding when inserting utf8 data in utf8 database | ||
---|---|---|---|
Submitted: | 22 Nov 2007 15:51 | Modified: | 29 Feb 2008 1:19 |
Reporter: | Susanne Ebrecht | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 5.1 | OS: | Any |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[22 Nov 2007 15:51]
Susanne Ebrecht
[22 Nov 2007 15:52]
Susanne Ebrecht
C-API test
Attachment: utf8capitest.c (text/x-csrc), 1.84 KiB.
[22 Nov 2007 15:54]
Susanne Ebrecht
trace file
Attachment: bugs.odbc5.mysql.20071122-162720.trace (application/octet-stream, text), 6.53 KiB.
[3 Dec 2007 18:08]
Jess Balint
Issuing "set names utf8" is incorrect and future versions of the driver will prevent it from being executed.
[4 Dec 2007 8:54]
Susanne Ebrecht
Jess, I didn't do a "set names". The "set names utf8" what you see at the logs is from the driver not from me. The driver automatically makes this "set names utf8".
[29 Feb 2008 1:19]
Jim Winstead
This is due to iODBC. When used with a Unicode driver (like C/ODBC 5.1), it takes all arguments to non-W methods and does an ANSI-to-Unicode conversion, and then calls the W methods of the driver. If you want to use Unicode data with ODBC, the only relatively portable way to do it is by using SQLWCHAR.