NextPrevUpTopContentsIndex

21.5 External Formats

External formats are two-way translations from Lisp's internal encoding to an external encoding. They can be used in file I/O, and in passing and receiving string data in foreign function calls.

An external format is named in LispWorks by an external format specification (ef-spec). An ef-spec is a symbol naming the external format, or a list with such a name as its first element followed by parameter/value pairs.

LispWorks has a number of predefined external formats:

win32:code-page

The Windows code page with identifier given by the :id parameter. Implemented only on Windows.

:latin-1

ISO8859-1.

:latin-1-terminal

As Latin-1, except that if a non-Latin-1 character is output, it is written as <xxxx> where xxxx is the hexdecimal character code and does not signal error.

:latin-1-safe

As Latin-1, except that if a non-Latin-1 character is output, it is written as ? and does not signal error.

:ascii

ASCII.

:unicode

The UCS-2 encoding of Unicode. The parameter :little-endian defaults to the endianness of the platform.

:utf-8

The UTF-8 encoding of Unicode.

:jis

JIS.

:euc-jp

EUC-JP.

:sjis

Shift JIS.


LispWorks User Guide - 8 Apr 2005

NextPrevUpTopContentsIndex