title: Why is TIdTextEncoding.Default undeclared?
body: <p>I tried to build the first client project that I got from <a href="http://sourceforge.net/projects/indy10clieservr/" rel="nofollow">http://sourceforge.net/projects/indy10clieservr/</a> but it says that TIdTextEncoding and Default from line 62 are both undeclared. I haven't made any chances, so what could have caused this?</p>
  
  <p>Full code:
      interface</p>
  
  <pre><code>uses
    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
    Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdGlobal;
  
  type
    TClientForm = class(TForm)
      CheckBoxConnectDisconnet: TCheckBox;
      ButtonSendString: TButton;
      Edit1: TEdit;
      Memo1: TMemo;
      IdTCPClient1: TIdTCPClient;
      procedure CheckBoxConnectDisconnetClick(Sender: TObject);
      procedure ButtonSendStringClick(Sender: TObject);
      procedure IdTCPClient1Connected(Sender: TObject);
      procedure IdTCPClient1Disconnected(Sender: TObject);
    private
      { Private declarations }
    public
      { Public declarations }
    end;
  
  var
    ClientForm: TClientForm;
  
  implementation
  
  {$R *.dfm}
  
  { TForm1 }
  
  procedure TClientForm.ButtonSendStringClick(Sender: TObject);
  var
    LLine: String;
  begin
  
    IdTCPClient1.IOHandler.WriteLn(Edit1.Text, TIdTextEncoding.Default);
    Edit1.Text := '';
    LLine := IdTCPClient1.IOHandler.ReadLn();
    if ( LLine = 'OK' ) then
        Memo1.Lines.Add('Server says it has received your String');
  
  end;
  
  procedure TClientForm.CheckBoxConnectDisconnetClick(Sender: TObject);
  begin
    if ( CheckBoxConnectDisconnet.Checked = True ) then
    begin
      IdTCPClient1.Host := '127.0.0.1';
      IdTCPClient1.Port := 6000;
      IdTCPClient1.Connect;
    end
    else
      IdTCPClient1.Disconnect;
  end;
  
  procedure TClientForm.IdTCPClient1Connected(Sender: TObject);
  begin
    Memo1.Lines.Add('Client connected with server');
  end;
  
  procedure TClientForm.IdTCPClient1Disconnected(Sender: TObject);
  begin
    Memo1.Lines.Add('Client disconnected from server');
  end;
  
  end.
  </code></pre>