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