title: Indy 9 TCP client text encoding
body: <p>I have a Delphi 7 app using Indy 9 which connects a <code>TIdTCPClient</code> to a <code>TIdTCPServer</code> in a Delphi XE2 app using Indy 10.5.</p>
  
  <p>To set the text encoding to UTF-8 in <code>TIdTCPClient</code> in Indy 10, I can use this:</p>
  
  <pre><code>TCPClient.IOHandler.DefStringEncoding := TIdTextEncoding.UTF8;
  </code></pre>
  
  <p>How can I set the text encoding to UTF-8 in Indy 9, since there is no <code>DefStringEncoding</code> property in the <code>IOHandler</code>?</p>