标签: c# mysql utf-8 mysql-connector
当我使用时:
INSERT ... 'ąść' ...
它添加了值'asc'。为什么会这样?我在表声明结束时写了CHARACTER SET utf8,也使用了COLLATE utf8 polish ci。我也尝试过:
CHARACTER SET utf8
COLLATE utf8 polish ci
INSERT ... VALUE ( N'ąść' )
但它不起作用。 N - 像unicode一样写了here.
答案 0 :(得分:1)
尝试发出
SET NAMES utf8
。
SET NAMES utf8 in MySQL?
how to select mysql query with foreign language?