help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Ope


From: Eli Zaretskii
Subject: Re: Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Operating on yanked region)
Date: Wed, 18 May 2016 21:14:13 +0300

> From: Karl Voit <address@hidden>
> Date: Wed, 18 May 2016 17:53:51 +0200
> 
> ,----
> | selection-coding-system is a variable defined in `select.el'.
> | Its value is iso-latin-1-dos
> | Original value was nil
> `----
> 
> I once set this to 'utf-8 in my init.el. The Emacs help further
> suggests setting it to 'utf-16le-dos instead when running on
> Windows. With switching to this setting, the clipboard gets yanked
> properly! :-)

You shouldn't set selection-coding-system to any value on MS-Windows,
just leave it alone.  It will work regardless.  Setting it to anything
is asking for trouble, as it forces Emacs to use that encoding instead
of using UTF-16 when available in the clipboard.

> Can you still show me how I yank and operate (string-replace) only
> on the yanked text?

Turn on transient-mark-mode, I think.



reply via email to

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