title: Delphi indy10 http server and ExtJS form submit
body: <p>I have a problem I don't know how to solve. </p>
  
  <p>I have an Indy10 HTTP server. I have used both Indy9 and Indy10 HTTP servers in many applications and never had any problems. But now I am using Indy10 HTTP server with ExtJS javascript RAI framework.</p>
  
  <p>The problem is when I submit data that contains non-ansi characters. For instance when I submit letter "č" which is a letter in 1250 codepage (slovenian, croatian...) I get the following in Indy under "unparsed params" -> "%C4%8D". This is correct hexadecimal representation of the "č" letter in utf-8 encoding. All my pages are utf-8 and I never had any problems submiting form data to Indy. I debugged the code and saw that I actually get a sequence of bytes like this: [37, 67, 52, 37, 56, 68]. This is the byte representation of the string "%C4%8D". But of course Indy cannot encode this correctly to UTF-16. So as an example. The actual form field:</p>
  
  <pre><code>FirstName=črt
  </code></pre>
  
  <p>comes out like this when submited:</p>
  
  <pre><code>FirstName=%C4%8Drt
  </code></pre>
  
  <p>I don't know how to solve this. I looked at ExtJS forums, but there is nothing on this topic. Anybody know anything about this kind of problem?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>If I encode params ad JSON they arrive correctly. I also tried to URL decode the params, but the result is not correct. Maybe I missed something. I will look at this again. And yes it seems that ExtJS URL encodes the params</p>
  
  <p><strong>EDIT2</strong>:</p>
  
  <p>Ok, I have discovered more. I compared the actual content of the post data. It is like this:</p>
  
  <pre><code>Delphi 2006 (Indy10): FirstName=%C4%8D
  Delphi 2010 (Indy10): FirstName=%C4%8D
  </code></pre>
  
  <p>In both case the unparsed params are identical. I have ParseParams turned on and in BDS2006
  they are correctly parsed, but under 2010 they are not. This is Indy10 bulked with delphi. Is there a bug in this version or am I doing something wrong?</p>
  
  <p><strong>EDIT3</strong>:</p>
  
  <p>I downloaded the latest nightly build od Indy10. Still the same issue.</p>
  
  <p><strong>EDIT4</strong>:</p>
  
  <p>I am forced to accept my own answer.</p>