Code: Select all
put "SELECT RecNum FROM RDTKeys WHERE (RDTKey = :1)" into locSQLString
put the unicodeText of field "SearchTarget" into locTarget
--field SearchTarget has a Russian or an English word
put uniDecode(locTarget, "UTF16") into locSQLParams --now locSQLParams is UTF-8
get revDataFromQuery(,, gDictDBID, locSQLString, "locSQLParams")
if it is empty then
answer "Not found"
else
answer it
end if
The database is in a local file--this is not an online database.
I can browse this database with a SQLite browser, I can retrieve data from it in other applications by doing similar searches, I know the records are there, and I know the Russian in this db is in Unicode.
What am I doing wrong?
How can I get deeper into the bowels of the Database Library to see what's happening?
Has anyone successfully worked in LC with a Unicode, non-English SQLite database?
Thanks, folks,
Slava