首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

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

2013-02-25 
Undeclared identifier: 'TIdTextEncoding'应该包含什么发送tstringlist时IdTCPClient1.IOHandl

Undeclared identifier: 'TIdTextEncoding'应该包含什么
发送tstringlist时
IdTCPClient1.IOHandler.Write(ToBytes(ise.Text,TIdTextEncoding.UTF8));
出现上面的错误,应该包含什么啊。
[解决办法]
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

热点排行