c# how to tell connection it use utf8

use encoding utf8 mysql

MySqlConnection conDatabase = new MySqlConnection("Data Source=localhost;" +
                                       "Persist Security Info=yes;" +
                                       "UserId=tee; PWD=t579; database=ph3;");

Who is Participating?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
The examples here http://www.connectionstrings.com/mysql show adding charset=UTF8; to the connection string.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.