unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Question about (gui-get-selection nil 'text/html)
@ 2018-04-13 19:00 Lars Ingebrigtsen
  2018-04-13 19:07 ` Lars Ingebrigtsen
  2018-04-13 21:42 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-13 19:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

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 #2: selection.bin --]
[-- Type: application/octet-stream, Size: 125 bytes --]

[-- Attachment #3: Type: text/plain, Size: 448 bytes --]


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-04-14  6:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 19:00 Question about (gui-get-selection nil 'text/html) Lars Ingebrigtsen
2018-04-13 19:07 ` Lars Ingebrigtsen
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

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).