本文整理自网络,侵删。
需要设置一个字符集参数,否则读中文时会有问题
SQLConnection1.Params.Add('HostName=' );
SQLConnection1.Params.Add('User_Name=' );
SQLConnection1.Params.Add('Password=' );
SQLConnection1.Params.Add('DataBase=' );
SQLConnection1.Params.Add('ServerCharSet=utf8');
相关阅读 >>
Delphi sysutils.comparestr、sysutils.comparetext - 字符串比较
Delphi 利用unigui中的tunipagecontrol实现多页面
Delphi idhashmessagedigest 获取文件md5
更多相关阅读请进入《Delphi》频道 >>