title: Delphi 2009: Search skipping diacritics in unicode utf-8
body: <p>I am having utf-8 encoded file containing arabic text and I have to search it.</p>
  
  <p>My problem are diacritics, how to search skipping them?</p>
  
  <p>Like if you load that text in Internet Explorer (converting text in HTML ofcourse ), IE is skipping those diacritics?</p>
  
  <p>Any help?</p>
  
  <p><strong>Edit1</strong>: Search is simply performed by following code:</p>
  
  <pre><code> var m1 : TMemo; //contains utf-8 data)
       m2 : TMemo; // contains results
  
   ...
  
        m2.lines.BeginUpdate;
        for s in m1.Lines do
        begin
          if pos(eSearch.Text,s)&gt;0 then
             begin
             m2.Lines.Add(s);
             end;
        end;
        m2.Lines.EndUpdate;
  </code></pre>
  
  <p><strong>Edit2</strong>: Example of unicode data:</p>
  
  <p>قُلْ هُوَ اللَّهُ أَحَدٌ
  If you search only letters without diacritics قل the word قُلْ wont be found.</p>