read/write unicode data in MySql

前端 未结 4 1876
心在旅途
心在旅途 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:33

    You need to set the db charset to UTF-8 (if you are using utf-8), collation for relevant tables/fields to utf, execute SET NAMES 'UTF-8' before doing queries, and of course make sure you set the proper encoding in the html that is showing the output.

提交回复
热议问题