Logtalk reference manual
Entity directive: encoding/1

encoding/1

Description

encoding(Encoding)

Declares the source file text encoding. This is an experimental source file directive, which is only supported on some Prolog compilers. When used, this directive must be the first term in the source file. Currently recognized encodings include ascii, iso_8859_1, iso_latin_1 (an alias to the previous one), utf8, unicode_be, and unicode_le.

Template and modes

encoding(+atom)

Examples

:- encoding(utf8).

:- encoding(iso_latin_1).