GNU bug report logs - #35766
emacs saves utf-16 le xml files as utf-16 be

Previous Next

Package: emacs;

Reported by: J S <jszabo_98 <at> hotmail.com>

Date: Thu, 16 May 2019 17:58:01 UTC

Severity: normal

Merged with 8282, 8283

Fixed in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 35766 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: J S <jszabo_98 <at> hotmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "35766 <at> debbugs.gnu.org" <35766 <at> debbugs.gnu.org>
Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be
Date: Fri, 17 May 2019 07:48:30 -0400
J S <jszabo_98 <at> hotmail.com> writes:

> It would change color in emacs if encoding="UTF16-LE" were invalid.
> It's hard to find the docs for it.  UTF-16LE is listed here:
> http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Fcxmlenc.html

A more official reference:

https://www.w3.org/TR/xml/#NT-EncName

    It is RECOMMENDED that character encodings registered (as charsets)
    with the Internet Assigned Numbers Authority [IANA-CHARSETS], other
    than those just listed, be referred to using their registered names;

[IANA-CHARSETS]: http://www.iana.org/assignments/character-sets/character-sets.xhtml

    UTF-16LE    1014    [RFC2781]   [RFC2781]   csUTF16LE





This bug report was last modified 6 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.