bug-gnu-libiconv
[Top][All Lists]
Advanced

[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: Wed, 30 Jan 2019 19:14:44 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #4, bug #55609 (project libiconv):

> produce Little Endian, with BOM

If you produce UTF-16 with a BOM, the receiver MUST use the BOM to determine
whether they will decode in little-endian or big-endian order; that's the
point of the BOM. Therefore, as the sender, you don't need to care whether you
produce little-endian or big-endian output.

On the other hand, you can achieve what you want by concatenating a
little-endian BOM and the iconv output produced with encoding UTF-16LE.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55609>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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