title: Solve E2010 Incompatible types: 'AnsiChar' and 'Char'
body: <p>I try to convert some code from D2007 to XE5 and got</p>
  
  <p>E2010 Incompatible types: 'AnsiChar' and 'Char'</p>
  
  <p>from this code</p>
  
  <pre><code>  TSetOfChar = Set of Char;
  
    var
      CharacterSet: TSetOfChar;
      s: String;
  
      for j := 1 to Length(s) do
      begin
        Include(CharacterSet, s[j]);  // Error E2010
        if not CaseSensitive then
        begin
          Include(CharacterSet, AnsiUpperCase(s[j])[1]);  // Error E2010
          Include(CharacterSet, AnsiLowerCase(s[j])[1])   // Error E2010
        end
      end;
  </code></pre>
  
  <p>Any suggestion for solution ? I think it is enough to handle AnsiStrings.</p>