After the first answer, Prolog shows the error “char_code/2: Cannot represent due to 'character_code'”

放肆的年华 提交于 2019-11-28 10:05:46

问题


In normal situation, we can use ";" to show the next answer if there is one.
But if I do this, it shows me

error: char_code/2: Cannot represent due to 'character_code'

In stead of ";", I use "shift + ;", and prolog gives me a prompt

Unknown action: : (h for help)   Action?

then if I input ";", the designable answers will be shown one by one.

What is the problem?


回答1:


Use swipl-win.exe instead of swipl.exe can solve this problem.(I tried 6.x and 7.x)

By the way, swipl works well under MacOS.



来源:https://stackoverflow.com/questions/23133168/after-the-first-answer-prolog-shows-the-error-char-code-2-cannot-represent-du

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!