title: Generating dynamic HTML page with UTF8 in Delphi
body: <p>I'm generating HTML dynamically using Delphi strings (Delphi XE). What is the correct way to encode accentuated characters into my HTML?</p>
  
  <pre><code>var
   s : string;
   myHTML : string;
  
  (...)
  s:= 'programação';
   myHTML:= 
  '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;'+#10+
  '&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;'+#10+
  (...)
  '&lt;title&gt;OmneeK Server - Intraweb&lt;/title&gt;'+#10+
  '&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;'+#10+
  (...)
  
  myHTML:= myHTML + '&lt;font color="red"&gt;' + s + '&lt;/font&gt;';
  
  (...)
  </code></pre>
  
  <p>with the above code I get (from the browser):</p>
  
  <pre><code>"programa��o"
  </code></pre>
  
  <p>I've tried with HTMLEncode but the result is the same. I'm using ICS components to handle the HTTP requests.</p>