| Bug #7785 | Solved | ||
|---|---|---|---|
| Submitted: | 10 Jan 2005 22:35 | Modified: | 31 Jan 2005 21:20 |
| Reporter: | Jordi Bruña | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | Connector / NET | Severity: | S3 (Non-critical) |
| Version: | 1.0.3.31712 | OS: | .Net 1.1 |
| Assigned to: | Reggie Burnett | CPU Architecture: | Any |
[10 Jan 2005 22:35]
Jordi Bruña
[11 Jan 2005 14:56]
Jordi Bruña
the problems ocurred when the dataadapter try update or insert a column which in the database has a national character. Example when a text column has a character as á or é or the ¿ character. I'm using spanish characters. An example. I has a row what has a text column with this data: llamara mañana. if the ñ character is in the word the row update fails. if i change the ñ character to the a ny the update is correct. I don't understand whats the problem and i don't have the knowledge to debug de driver. Please help
[11 Jan 2005 15:30]
Jordi Bruña
there isn't any error in the driver. I didn't know that i need to set the characterset to utf8 in the connection string. Thanks a lot. Excuse me.
[30 Aug 2005 14:46]
Rok Berme
Setting the CharSet wont work for me. The following code snippet will always insert 'aa-Cc????-bb' into database. I cant seem to find the problem. Any help would be greatly appreciated.
MySqlConnection ConnNew = new MySqlConnection("Database=zaposlitev;Data Source=10.0.10.20;User Id=user;Password=pass;CharSet=utf8;");
ConnNew.Open();
string sSql="INSERT INTO tmp (tmp) VALUES (?tmp);";
MySqlCommand cmd = new MySqlCommand(sSql,ConnNew);
cmd.Parameters.Add( "?tmp", "aa-ČčŠšŽž-bb");
cmd.Prepare();
cmd.ExecuteNonQuery();
ConnNew.Close();
Interestingly if I just use:
MySqlConnection ConnNew = new MySqlConnection("Database=zaposlitev;Data Source=10.0.10.20;User Id=ata;Password=ata;CharSet=utf8;");
ConnNew.Open();
string sSql="INSERT INTO tmp (tmp) VALUES ('aa-ČčŠšŽž-bb');";
MySqlCommand cmd = new MySqlCommand(sSql,ConnNew);
cmd.ExecuteNonQuery();
ConnNew.Close()
Everything is inserted fine.
PLEASE HELP!!!
[30 Aug 2005 16:16]
Reggie Burnett
Rok What version of the connector are you using? 1.0.4 or 1.0.5?
[31 Aug 2005 8:00]
Rok Berme
I was using 1.0.4. and thought it was the latest. 1.0.5. solved the problem. THANK you so much Reggie!!!!
