Jump to content
Henry Olive

ClientDataset.Filter ( Non English Character )

Recommended Posts

 

I moved this topic from Object Pascal to here which is correct forum

 

Good Day,

 

Delphi 10.3

I have problem when filtering a table with non english character

 

Button1.Click Event

var

SearchText :=String;

begin

  SearchText :=Edit1.Text (Which is  'MİSA' )

  CDS1.FilterOptions := [foCaseInsensitive];

  CDS1.Filtered := False;

  CDS1.Filter := UPPER ( CATEGORY ) LIKE ' + QuotedStr (SearchText + '%');

  CDS1.Filtered := True;

end;

Eventhough i have MİSA in the table's Category field, I get an empty result

What am i doing wrong ?

 

P.s : When i use ( In FB 3 Sql )  SELECT FROM MYTABLE WHERE UPPER(CATEGORY) LIKE 'MİSA%'

I get expected results w/o any problem

 

Thank You

Share this post


Link to post

If you don't have a chance to upgrade, you can take a look at Zeos. It handles Unicode filters and should be able to connect to your preferred RDBMS.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×