Board index » delphi » Accented character search

Accented character search

Is there a way of enabling a user to enter an unaccented string and then
doing a Locate through a table and find a keyword string which may contain
the same characters as the search string but with accents ?

--
Ian Trackman
email : i...@bluechipbridge.co.uk

 

Re:Accented character search


Quote
>Is there a way of enabling a user to enter an unaccented string and then
>doing a Locate through a table and find a keyword string which may contain
>the same characters as the search string but with accents ?

Not with Locate or any of the other built in methods.
The search is on the ASCII character codes of the string you are searching.
Accented character have a different ASCII code from the unaccented character. In
order to do what you want there would have to be some kind of mapping and
character substitution for each different character set.  

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads