I have a MySQL database with some varchar fields that may contain latin characters or japanese characters. There are records containing Japanese characters, this is not a problem. However, from my C # code using MySqlConnection , I was not able to get the correct results using Japanese characters in my WHERE clauses. He seems to be comparing Japanese characters as if they are question marks. For example, a query with WHERE series_title LIKE '%未来警%' does not return a value where series_title contains "未来 警", but instead returns all records in which series_title contains "???".
Some information:
series_title is varchar(150) with utf8_general_ci sort.ConnectionString for MySqlConnection includes a pair of kv CharSet=utf8_general_ci- the database contains Japanese characters and is able to return them to the C # client - these are only problems when Japanese characters are sent to it
source share