CLISP终端错误:无效的字节序列 [英] CLISP Terminal error: Invalid byte sequence

查看:122
本文介绍了CLISP终端错误:无效的字节序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用clisp将我的源文件加载到终端中时,我遇到了问题. 如果我执行以下命令来加载文件:

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") 

它给了我以下错误:

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.

推荐答案

您的文件使用 ISO-8859-1 :

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

基于CLISP关于编码的文档:

Based on CLISP's documentation about encodings:

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

这篇关于CLISP终端错误:无效的字节序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆