title: Incompatible char and widechar in Delphi
body: <p>I have a strange problem.</p>
  
  <p>I'm using Delphi 2007 and running it with the <code>-r</code> switch. On my computer everything works fine. When I transfer code to another computer I get an error:</p>
  
  <blockquote>
    <p>Incompatible types char and widechar.</p>
  </blockquote>
  
  <p>Maybe I should change some options.</p>
  
  <p>Function that makes the problem:</p>
  
  <pre><code>function THcp.ConVertString(s: string): string;
  Var i:integer;
      lstr:string;
  begin
       lstr:=EmptyStr;
       for i := 1 to Length(s) do
       begin
             case s[i] of
               'Č': s[i]:='C';
               'č': s[i]:='c';
               'Ć': s[i]:='C';
               'ć': s[i]:='c';
               'Š': s[i]:='S';
               'š': s[i]:='s';
               'Đ': s[i]:='D';
               'đ': s[i]:='d';
               'Ž': s[i]:='Z';
               'ž': s[i]:='z';
             end;
             lstr:=lstr+s[i];
       end;
       Result:=lstr;
  end;
  </code></pre>