Re: Character encodings issue with phrase_from_file

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 08/19/2013 08:32 AM, Richard A. O'Keefe wrote:
> The problem is that SWI Prolog is by default processing the external
> file in the expectation that it is coded using UTF-8, and 

No.  SWI-Prolog processes input according to the C99 multi-byte
to wide character functions.  Only if the locale has UTF-8 in
its name, it will replace this by its own UTF-8 handling, which
is a lot faster than what (at least g-)libc offers.  In addition,
you can set the encoding at various places to a small set of
explicit values.  Internally, everything is supposed to be
Unicode (`supposed' as in this is only true if the correct
en/decoding is applied).

	Cheers --- Jan

> a bare \223 or \224 (a) isn't legal at all in UTF8 and
> (b) doesn't represent a quotation mark in Unicode.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.