MySQL 4.1.11-nt via TCP/IP
Table defined:
testID int NOT NULL - autoincrement
textfield text NOT NULL - utf8
The following code successfully runs, but fails to store anything after the first special character (Ñ):
Code: Select all
CoreLab.MySql.MySqlConnection conn = new MySqlConnection(connectionstring);
conn.Open();
string s = "UNA PEQUEÑA CONTRIBUCION";
using (MySqlCommand cmd = conn.CreateCommand())
{
cmd.CommandType = CommandType.Text;
cmd.CommandText = "insert into test (textfield) values (@textfield)";
cmd.Parameters.Add("@textfield", s);
cmd.ExecuteNonQuery();
}
conn.Close();
conn.Dispose();