[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about (gui-get-selection nil 'text/html)
From: |
Lars Ingebrigtsen |
Subject: |
Re: Question about (gui-get-selection nil 'text/html) |
Date: |
Fri, 13 Apr 2018 21:07:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
Re: Question about (gui-get-selection nil 'text/html), Stefan Monnier, 2018/04/13