Re: Character encodings issue with phrase_from_file
"Richard A. O'Keefe" <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 19/08/2013, at 6:57 PM, Jan Wielemaker wrote: > 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. I think you mis-read me. I meant **IN THIS EXAMPLE**. "By default" meaning "without the user's active intervention". If SWI Prolog were not assuming UTF-8, it would have had nothing to complain about. The user had not intervened to request UTF-8. So, "by default GIVEN THE USER'S SETUP". The key point remains that the file ISN'T Latin-1 or Unicode and that according to the on-line documentation, SWI Prolog DOESN'T support the encoding (probably Windows 1250) that it *is* in. I spent some time yesterday poring over the 6.5.1 sources trying to figure out how to add ENC_CP1250 to SWI Prolog.