[Top][All Lists]

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

Question about (gui-get-selection nil 'text/html)

From: Lars Ingebrigtsen
Subject: Question about (gui-get-selection nil 'text/html)
Date: Fri, 13 Apr 2018 21:00:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

So, we can yank HTML that we cut from Firefox like so:

(gui-get-selection nil 'text/html)

... sort of.

I've put the result into a binary file so it'll hopefully survive the
email transport.

Attachment: selection.bin
Description: Binary data

So...  what is that?  I've tried to google, but I found nothing
promising, so my Google-fu is probably bad.

It rather looks like it's UTF-16 -- every other byte is a nul.  But
Emacs claims that it's iso-8859-1.  And...  I've tried decoding various
instances of these things like UTF-16, and it almost kinda works, but
not quite.

Any ideas?

(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]