swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
constant  

utf8.byte-order-mark

 
 

Library: UTF-8 (OMUTF8)
Import: omutf8.xmd
Return type: String

Returns: UTF-8 byte-order mark


Declaration

constant string byte-order-mark
    


Purpose

Some UTF-8 data streams contain a leading byte-order mark (also referred to as a signature). Since this byte-order mark can interfere with later processing, it is sometimes better to remove it from the input. For example, since a UTF-8 byte-order mark can interfere with XML processing, it can be dropped from the input before the latter is passed to the XML parser:


  process
     do xml-parse scan file "input.xml" drop utf8.byte-order-mark?
        suppress
     done 
          

    Related Topics
 
Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.