Hello,
I am encountering some encoding issues that seem to originate from the default encoding (i.e. if I set “:- encoding(utf8).” in the respective source file als works fine). In my case the default encoding is set to “text”. However, I expected it to be utf8 as the the locale LC_CTYPE is set to UTF-8. So my question is if this is indeed an error? And if so, how to correct it? Any help is appreciated.
    > % uname -a
    Darwin scissors 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan  9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
    >  % env
    TERM_PROGRAM=Apple_Terminal
    SHELL=/bin/zsh
    TERM=xterm-256color
    TMPDIR=/var/folders/4s/3c4qf09x2zd8s68rn6bmfmjm00lv_b/T/
    TERM_PROGRAM_VERSION=433
    ...
    LC_CTYPE=UTF-8
    _=/usr/bin/env
    > % swipl
    Welcome to SWI-Prolog (threaded, 64 bits, version 8.1.24-9-g42b97ff65)
    SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
    Please run ?- license. for legal details.
    For online help and background, visit [https://www.swi-prolog.org](https://www.swi-prolog.org/)
    For built-in help, use ?- help(Topic). or ?- apropos(Word).
    ?- current_prolog_flag(encoding,X).
    X = text.
Thanks,
Joost