1.确保你的mariadb数据库的character_set_connection.character_set_database.character_set_server的编码均为utf8 MariaDB [(none)]> show variables like "character_set_%";+--------------------------+----------------------------+| Variable_name | Value |+--------…
Delphi+MySQL:TADOQuery使用插入中文乱码解决方法 with adoquery dobeginclose;sql.clear;sql.text:=' insert into test (FieldName) values (:FieldName) ';Parameters.ParamByName('FiledName').Value := UTF8Encode('中文(简体/繁體)');ExecSQL;end;…