Hey I could use some help tackling this issue.
I was given a prolog source file and tasked with querying it through A C++ program.
The file is UTF-8 encoded.
When running swipl in the terminal i do the following:
B = [ajaleht].
Everything works as expected.
Through the C API however, I get the following error:
Prolog query failed: Failure to generate solution: error(existence_error(procedure,s??nad/2),context(system:call/1,_G42))
The problem goes away, if i remove the 'õ' character.
querying current_prolog_flag(encoding,X) returns X = 'utf8'.
The code i'm using to query in c++ can be found here:
take a look at Query::Impl::open()
Really hit the wall with this problem, any help is greatly appreciated.