Simple library to guess the mime-type from the extension of a file. As various applications need to do this type ofinferencing it seems worthwhile to place this functionality in an extensible library.
ContentType:
ContentType. It
takes the following steps:
default_charset
The behavior is controlled by several hooks and a flag.
default_charset
defines the charset unless it is set
to -
. The flag set by default to UTF-8
if the Prolog
flag encoding
is set to utf8
.The following predicates are exported, but not or incorrectly documented.