Since the recent 4.8.0, SICStus supports Unicode above ΓΏ
within Prolog text at least in a quoted context, that is within a quoted token (* 6.4.2 *)
, a double quoted list (* 6.4 *)
and a character code constant (* 6.4.4 *)
. As a consequence also unicorn syntax is supported, like
| ?- U='\x1f984\'. % teh olde way
U = '' ? ;
no
| ?- U = ''.
U = '' ? ;
no
Similarly, [user]
supports unicorns directly! However, when opening a file with open/3
only a BOM-ed file or an explicit option with open/4
sets the encoding to UTF-8. Says the meanual
The default is 'ISO-8859-1' if no encoding is specified and no encoding can be detected from the file contents.
(And it seems that not the entire file content is used for that detection.) Is there a way to change that default to UTF-8? Such that I can use UTF-8 everywhere?