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