Delphi+MySQL:TADOQuery使用插入中文乱码解决方法


本文整理自网络,侵删。

 
with adoquery do
begin
close;
sql.clear;
sql.text:=' insert into test (FieldName) values (:FieldName) ';
Parameters.ParamByName('FiledName').Value := UTF8Encode('中文(简体/繁?w)');
ExecSQL;
end;

相关阅读 >>

Delphi多线程程序示例(最简单的多线程)

Delphi 将richedit的内容输出到一个image图像中

Delphi将图片转换成文本支持转换回去

Delphi 去掉treeview水平滚动条

Delphi 资源管理器套件

Delphi idhttpserver使用注意问题

Delphi xe vcl - tlinklabel(链接标签)

Delphi tdirectory.getdirectories

Delphi整理四(程序控制结构)

Delphi 获取ie网址收藏夹

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...