Subject: bug#20623: XML and HTML files with encoding/charset="utf-8" declaration loose BOM; Coding system is reset from utf-8-with-signature to utf-8 on save

From: Vincent Lefevre <[email-masked]>
Date: Sun, 12 Aug 2018 02:58:53 +0200

On 2018-08-11 20:11:49 -0400, Stefan Monnier wrote:
> >> Please provide the details, including the use case, if possible.  I'm
> >> still in the dark regarding the importance of the BOM in UTF-8 encoded
> >> HTML stuff.
> >   https://bugzilla.mozilla.org/show_bug.cgi?id=1422889
> 
> I don't see any data loss there.

Because it is not there, it is in Emacs. What the Mozilla bug shows
is that the presence of BOM or not is important and yields very
different behavior.

-- 
Vincent Lefèvre <[email-masked]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)