MySQL Forums
Forum List  »  Connector/ODBC

Data Source Name in UTF-8
Posted by: Yi Chang
Date: April 19, 2017 05:39PM

Does mysql support DataSourceName in UTF8? I searched document and forum and could not find any reference.

Tested using
iusql '進mysql1' username passwd
and it gives
[ISQL]ERROR: Could not SQLDriverConnect

odbc.log give this trace:
ODBC][532][1492644300.940393][SQLDriverConnectW.c][290]
Entry:
Connection = 0x2032d10
Window Hdl = (nil)
Str In = [DSN=進mysql1;UID=xxxx;PWD=xxxx][length = 35 (SQL_NTS)]
Str Out = (nil)
Str Out Max = 0
Str Out Ptr = (nil)
Completion = 0
UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'

[ODBC][532][1492644300.943881][SQLDriverConnectW.c][699]
Exit:[SQL_ERROR]


odbc.ini setting is like this:
[進mysql1]
Driver = MySQL ODBC 5.3 Unicode Driver
Database = xxxx
Server = xxxxx
Port = xxxx
charset = utf8

Options: ReplyQuote


Subject
Written By
Posted
Data Source Name in UTF-8
April 19, 2017 05:39PM
April 25, 2017 10:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.