I am trying to insert a row into a MySQL database. I can insert it by running a request on the server, but when I try to use the C # source file to insert “Iñtërnâtiônàlizætiøn”, I get “Ià ± tÃ" rnà ¢ tiÃ'nà lizà | tiøn ". I tried to add it as parameter and add: charset = utf8 to the connection string, but no luck. The table in the database has utf8 as the character set. I missed something.
This is my code (using StringBuilder):
sqlBuffer.Append( string.Format( @"INSERT `resources` (id, somefield) VALUES (20004,'Iñtërnâtiônàlizætiøn');");
source share