Hello Eng.Mahmoud
Thanks for support; but I found another one (after two days of hard work to figure out how to solve it)
I've tried every thing you can imagine, from saving text to file and load it , to convert every character to it's ascii and use these ascii codes to search with ; to store it in a temporary table !
I even recreate the whole DB with all data with different encoding (UTF-8,UTF-16,Latin 1 and Windows-1256)
while trying the last solution (Windows-1256) I found that I can search correctly but characters display as 'garbage' text (but search works)
so I've update my DB table by adding other two fields (Windows-1256) to search and display other fields (UTF-8)!
I could use youur code but I've faced two problems
- the first it was a bit slow (think about searching by word 'الله')
- the second that I still need to search Sura name to save as bookmarks (which is for some reason is UTF-8 : searchable but don't display correctly)
Yes this solution has its cost (double size of table) but it's working.
I'm sharing this solution to every one tries all of : (windows - QT - SQlite)
It will be nice if you provide and way to convert between encoding :)
this may save a lot of time
By the way I've created a
new branch with all code including the new version of DB and some fixes