Outputting a BOM into HTML is marked “experimental”. Since there are
situations in which a BOM should not be output, this seems right. Needs
further evaluation.
if (input_char != EOF)
put_ucs2 (BYTE_ORDER_MARK, subtask); /* FIXME: experimental */
+ /* According to RFC 2718 and the Unicode Standard, if you declare the
+ character encoding of your page using HTTP as either "UTF-16LE" or
+ "UTF-16BE" then you should not use a byte-order mark at the beginning
+ of the page. Only if the page is labelled in HTTP using IANA charset
+ name "UTF-16" is a byte-order mark appropriate. */
+
while (input_char != EOF)
if (input_char == '&')