Function: x-dnd-insert-utf16-text
x-dnd-insert-utf16-text is a byte-compiled function defined in
x-dnd.el.gz.
Signature
(x-dnd-insert-utf16-text WINDOW ACTION TEXT)
Documentation
Decode the UTF-16 text and insert it at point.
TEXT is the text as a string, WINDOW is the window where the drop happened.
Source Code
;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defun x-dnd-insert-utf16-text (window action text)
"Decode the UTF-16 text and insert it at point.
TEXT is the text as a string, WINDOW is the window where the drop happened."
;; See comment in x-dnd-handle-moz-url about coding.
(let ((coding (if (eq (byteorder) ?B) 'utf-16be 'utf-16le)))
(dnd-insert-text window action (decode-coding-string text coding))))