All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

*specific-valid-file-encodings* Variable

Summary

List of external formats to check for validity.

Package

system

Initial Value

nil

Description

The variable *specific-valid-file-encodings* is a list used by specific-valid-file-encoding, which tests each element of *specific-valid-file-encodings* to see if it is valid for the contents of buffer, bounded by length, and returns the first valid encoding.

Examples

For example, the following will cause LispWorks to use UTF-8 if the file begins with valid UTF-8 bytes:

(pushnew :utf-8 system:*specific-valid-file-encodings*)
See also

specific-valid-file-encoding
*file-encoding-detection-algorithm*


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02