CLISP Terminal error: Invalid byte sequence

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 07:01:38

问题


i have a problem while loading my source file inside terminal using clisp. if i execute the following command to load the file:

(load #p "filename.lisp") 

it gives me the following error:

SYSTEM::LINE-COMMENT-READER: Invalid byte sequence #xE0 #xA0 #x20 in
CHARSET:UTF-8 conversion

can someone please tell me what i need to do in order to load the file? thank you.


回答1:


Your file is encoded with ISO-8859-1:

$ file filename.lisp 
filename.lisp: ISO-8859 text, with no line terminators

Based on CLISP's documentation about encodings:

(load #P"filename.lisp" :external-format 'charset:iso-8859-1)


来源:https://stackoverflow.com/questions/41630483/clisp-terminal-error-invalid-byte-sequence

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