From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: Question about (gui-get-selection nil 'text/html)
Date: Fri, 13 Apr 2018 21:07:27 +0200 [thread overview]
Message-ID: <871sfjudqo.fsf@mouse.gnus.org> (raw)
In-Reply-To: <87604vue1n.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 13 Apr 2018 21:00:52 +0200")
Oh, wow. If I just do
(decode-coding-region (point-min) (point-max) 'utf-16-le)
instead of utf-16, I get the HTML I expect instead of a bunch of Chinese
characters. :-)
There's a byte order mark at the start -- isn't utf-16 supposed to use
that to get the byte order?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2018-04-13 19:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-13 19:00 Question about (gui-get-selection nil 'text/html) Lars Ingebrigtsen
2018-04-13 19:07 ` Lars Ingebrigtsen [this message]
2018-04-13 20:27 ` Eli Zaretskii
2018-04-13 20:29 ` Lars Ingebrigtsen
2018-04-13 22:07 ` Andreas Schwab
2018-04-13 22:18 ` Lars Ingebrigtsen
2018-04-14 6:42 ` Eli Zaretskii
2018-04-13 21:42 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sfjudqo.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).