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

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

bug#35766: emacs saves utf-16 le xml files as utf-16 be


From: J S
Subject: bug#35766: emacs saves utf-16 le xml files as utf-16 be
Date: Sun, 19 May 2019 14:12:14 +0000

Sounds good.

From: Eli Zaretskii <eliz@gnu.org>
Sent: Sunday, May 19, 2019 4:58 AM
To: J S
Cc: npostavs@gmail.com; 35766@debbugs.gnu.org
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
 
On May 18, 2019 11:57:51 PM GMT+03:00, J S <jszabo_98@hotmail.com> wrote:
> RFC 2781 under "4.3 Interpreting text labelled as UTF-16" says is that
> if a document is labelled "UTF-16", the application should check the
> byte order mark to see if it is little endian or big endian   Only if
> there's no byte order mark, should the document be interpreted as big
> endian.
>


If you are talking about visiting an existing file, then the change I installed does just that.  I was talking about saving a file, in which case there's no BOM, since it isn't present in the buffer

reply via email to

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