Firebird ODBC connection charset UTF8
Bonjour,
J'utilise un objet ADODB.connection pour me connecter à une base données Firebird.
Quand je veux executer une commande d'insertion qui contient des caractéres japponais j'ai l'erreur "Malformed String".
J'ai pensé que la solution est de préciser que le charset est "utf8" lors de la connection, mais je trouve pas comment le préciser.
Est-ce que quelqu'un aurai une idée à propos de ça?
Voilà mon code de connection
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Global Firebird_Connection As ADODB.Connection 'To set connection and global to be used freely whenever we want it
Sub Connect_To_DataBase()
Database_Path = Worksheets("MAIN").Range("DB_PATH").Value 'This way we don't have to choose the same DB path Every time manipulating the same DB
ConnStr = "DRIVER=Firebird/InterBase(r) driver;UID=SYSDBA;PWD=masterkey;DBNAME=" & Database_Path & ";"
' Defining and initializing a connection Object which will handle the connexion to the Firebird DB
Set Firebird_Connection = New ADODB.Connection
Firebird_Connection.ConnectionString = ConnStr
Firebird_Connection.Open
End Sub |
Merci d'avance.