Undeclared identifier: 'TIdTextEncoding'应该包含什么

ChaoQiHuoWanYouXi 2013-01-23 12:40:00
发送tstringlist时
IdTCPClient1.IOHandler.Write(ToBytes(ise.Text,TIdTextEncoding.UTF8));
出现上面的错误,应该包含什么啊。
...全文
540 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Syndicater 2014-01-05
  • 打赏
  • 举报
回复
所以说如果编译器找不到TIdTextEncoding.UTF8,就直接用IndyUTF8Encoding好了,返回值都是TIdTextEncoding。
feiba7288 2013-01-23
  • 打赏
  • 举报
回复
TIdTextEncoding定义在IdGlobal.pas中 TIdTextEncoding is also declared in IdGlobal.pas. You cannot be using Delphi XE or XE2 an not have either TIdTextEncoding or IndyUTF8Encoding() available, since they are widely used throughout Indy's source code. If the compiler is complaining that they are both undeclared, that makes me think you simply have not added IdGlobal to the uses clause in your code. – Remy Lebeau Jan 27 '12 at 1:50 摘自:http://stackoverflow.com/questions/8984247/making-a-base64-decoded-text-visible-without-changing-windows-language-for-non
feiba7288 2013-01-23
  • 打赏
  • 举报
回复
indy10里面才有

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧