12.9.5 Foreign stream encoding
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Foreign access to Prolog IO streams
          • Foreign stream encoding
            • Ssetenc()
            • ScheckBOM()
            • SwriteBOM()
            • Scanrepresent()
    • Packages
Availability:C-language interface function
int ScheckBOM(IOSTREAM *s)
This function may be called on a buffered input stream immediately after opening the stream. If the stream starts with a known Byte Order Mark (BOM) the encoding is set accordingly and the flag SIO_BOM is set on the stream. Possibly resulting encodings are ENC_UTF8, ENC_UNICODE_BE and ENC_UNICODE_LE.