title: With Delphi Xe2 and MySQL 5.1, how return UTF8 string from query?
body: <p>I'm developing a DataSnap server that make some query to db MySQL 5.1, tables are UTF8 and I saw correct latin, chinese, japanese, russian, greek, hindi text in tables.</p>
  
  <p>When query the table I recieve "?????..." as response.</p>
  
  <p>I have set names UTF8:</p>
  
  <pre><code>  SQLConnection1.Connected:= True;
    SQLConnection1.ExecuteDirect('set names utf8;');
  </code></pre>
  
  <p>then I do this:</p>
  
  <pre><code>  with DMMySQL.SQLDataSet1 do
    begin
      if Locate('COD_GOOGLE', LanguageValue, []) then
        Result:= UTF8Decode(FieldByName('DESCRIPTION').AsString); //
    end;
  </code></pre>
  
  <p>and Result always is "?????...." with or without <code>UTF8Decode</code>.</p>
  
  <p>Where I'm wrong ?</p>
  
  <p>TIA</p>