I’m using: SWI-Prolog version (threaded, 64 bits, version 8.0.3)
I’ve encountered a problem while transmitting parameters query containing cyrillic alphabet.
My odbc connection is set with odbc_set_connection(db,encoding(unicode)) because unicode is the only coding that works well with the Oracle odbc driver.
Here’s the code:
predicate_example(FIO) :- odbc_prepare(db,
‘INSERT INTO TABLE_NAME(FIO) VALUES (?)’,[atom>varchar(100)],
St), odbc_execute(St,[FIO]), odbc_free_statement(St).
When FIO contains only latin letters everything works just fine, but when FIO contains cyrillic I get this error:
ERROR: Type error: ‘atom’ expected, found ‘text containing кириллица here’ (an atom)
Any help would be appreciated!