- With Delphi Xe2 and MySQL 5.1, how return UTF8 string from query?
- SQLConnection1.Connected:= True;
- SQLConnection1.ExecuteDirect('set names utf8;');
- with DMMySQL.SQLDataSet1 do
- begin
- if Locate('COD_GOOGLE', LanguageValue, []) then
- Result:= UTF8Decode(FieldByName('DESCRIPTION').AsString); //
- end;