TClientDataSet.Locate do not handle accents

  

As I wrote in the title, I have an issue with the component TClientDataSet and specially with its method Locate. If there is an accent in the searched string, the returned value is always false, and there is no option to handle accents in the TLocateOption. Did anyone found a way to solve this problem?

Thanks!

— EDIT ————————————————————————————————————————-

// in a method
ClientDataSetTournee.open;

// in an other method that I call after in a separate thread
// libtor equals ‘ANTONY_CLSH TOURNÉE 1 (VACANCES)’
if ClientDataSetTournee.Locate(‘LIBTOR’, libtor, []) then
begin
// data found
end
else
begin
myShowMessage(‘Erreur’, ‘Erreur interne : tournée introuvable’ );
exit;
end;

ClientDataSetTournee is fill thanks to the ProviderName that get the data from server and when libtor have this value, the error message shows up.

Comments are closed.