[Top][All Lists]

[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 22:29:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Lars Ingebrigtsen <address@hidden>
>> Date: Fri, 13 Apr 2018 21:07:27 +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? 
> The file you attached has no BOM.

The first four bytes were


Isn't that the BOM?  Or do I misremember?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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