Skip to content

Commit

Permalink
Show how to read arbitrary bytes into a string for SBCL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinpgalligan authored and vindarel committed Jan 11, 2024
1 parent 9bd6657 commit 9e35981
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions io.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ text/plain - the default in most Apache configurations).

What follows is a list of implementation dependent choices and behaviours and some code to experiment.

### SBCL
To load arbitrary bytes into a string, use the `:iso-8859-1` external format. For example:

~~~lisp
(uiop:read-file-string "/path/to/file" :external-format :iso-8859-1)
~~~

### CLISP

On CLISP, faithful output is possible using
Expand Down

0 comments on commit 9e35981

Please sign in to comment.