[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20623: XML and HTML files with encoding/charset="utf-8" declaration
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
Fri, 22 May 2015 18:26:57 +0300
> From: Stefan Monnier <address@hidden>
> Cc: Simon Ledergerber <address@hidden>, address@hidden
> Date: Fri, 22 May 2015 11:22:27 -0400
> > What would you expect Emacs to do instead? It just obeys the stated
> > encoding, which says nothing about the BOM. How can Emacs know when
> > to use utf-8 and when utf-8-with-signature?
> To the extent that Emacs has seen the BOM when opening the file, it
> would make sense for Emacs to try and preserve this detail.