codings are int SwriteBOM(IOSTREAM
*s) This function writes a Byte Order Mark (BOM) to s
and should be called immediately after opening a stream for writing. If
the encoding is one of
int Scanrepresent(int
c, IOSTREAM *s) Returns 0 if the encoding of s can represent the code point
c and -1 otherwise.
ENC_UTF8
,
ENC_UNICODE_BE
and ENC_UNICODE_LE
.
ENC_UTF8
, ENC_UNICODE_BE
or
ENC_UNICODE_LE
it writes the code point \ufeff
(a zero-width white space) to the stream in the current encoding and
sets the SIO_BOM
flag on the stream.
12.9.6 Foreign stream line endings
Text streams have a field newline
that controls the
handling of the newline convention. Note that inside Prolog all lines
end with a single newline (\u000a
, \n
) code
point. The values are described below. The default depends on the OS and
can be manipulated using the newline(Mode)
property of set_stre