[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] [bug #55609] Add support for BOM exceptions as indica

From: Bruno Haible
Subject: [bug-gnu-libiconv] [bug #55609] Add support for BOM exceptions as indicated in RFC 2781 section 3.3
Date: Sun, 27 Jun 2021 11:02:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Update of bug #55609 (project libiconv):

                Category:                    None => Encodings              


Follow-up Comment #10:

> iconv is needed to produce Little Endian, with BOM. None of the UTF-16,
UTF-16BE, and UTF-16LE do just that.

Correct. The encoding name to use depends on the receiver.

If the receiver expects little-endian always, use "UTF-16LE" as the encoding
specification; a BOM would be useless (and sometimes interpreted as a
character, causing trouble).

If the receiver can handle both little-endian and big-endian input, it needs
guidance; this guidance can be either an explicit label (out-of-band) or a BOM
(in-band); in the latter case, use "UTF-16" as the encoding specification.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]