如何在ECL上指定外部格式(例如(:crlf :|cp932|))?
我想用某种编码将字符串写入文件。所以我输入我的REPL如下:
(with-open-file (out "test.txt"
:direction :output
:external-format '(:crlf :|cp932|))
(write-string "some string" out))然后调用调试器,它显示如下:
The function EXT:MAKE-ENCODING is undefined.
[Condition of type UNDEFINED-FUNCTION]这是错误的方式.?当外部格式为:utf-8时,成功地编写.
发布于 2015-04-15 15:04:35
基于手册中的§19.1.3. External formats,看起来合适的符号实际上是"CP819“,并且在由"EXT”命名的包中,所以您可以使用ext: it 819,而不是:it 819\。您可以使用(:crlf : be 819),例如:
(with-open-file (out "test.txt"
:direction :output
:external-format '(:crlf ext:cp932))
(write-string "some string" out))发布于 2015-08-06 15:49:13
请回到ECL 15.2.21或使用git头-这是15.3.7中引入的一个错误
https://stackoverflow.com/questions/29651983
复制相似问题