read/write unicode data in MySql

前端 未结 4 1873
心在旅途
心在旅途 2020-12-03 21:54

I am using MySql DB and want to be able to read & write unicode data values. For example, French/Greek/Hebrew values.

My client program is C# (.NET framework 3.

4条回答
  •  清歌不尽
    2020-12-03 22:15

    The Solution!

    OK, so for C# client to read & write unicode values, you must include in the connection string: charset=utf8

    for example: server=my_sql_server;user id=my_user;password=my_password;database=some_db123;charset=utf8;

    of course you should also define the relevant table as utf8 + collation utf8_bin.

提交回复
热议问题