Nicolas Neuss <neuss@...> writes:
> I have a file with German "Umlaute". When I try to load it I get
>
> debugger invoked on a SB-INT:STREAM-DECODING-ERROR in thread
> #<THREAD "initial thread" {1002270781}>:
> decoding error on stream
> #<SB-SYS:FD-STREAM for "file
> /home/neuss/Programming/lisp/stundenplan.lisp" {100306FB41}>
> (:EXTERNAL-FORMAT :UTF-8):
> the octet sequence (246 114 115 97) cannot be decoded.
>
> I guess that I have to switch SBCL to ISO-8859-1. How is this done?
> (Is this somewhere in the manual? I didn't find it.)
External-format support is sadly underdocumented in the manual for
now. You need to supply an :EXTERNAL-FORMAT argument to
LOAD/COMPILE-FILE/OPEN/WITH-OPEN-FILE.
(mapcar #'caar sb-impl::*external-formats*)
Should give you a (non-exhaustive) list of valid argument values to
:EXTERNAL-FORMAT, which includes among others :ASCII, :LATIN-1,
:UTF-8, and naturally :EBDIC-US.
Cheers,
-- Nikodemus Schemer: "Buddha is small, clean, and serious."
Lispnik: "Buddha is big, has hairy armpits, and laughs."
|