From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Operating on yanked region) Date: Wed, 18 May 2016 14:31:17 +0200 Message-ID: <20160518123117.GA13317@tuxteam.de> References: <2016-05-18T13-02-10@devnull.Karl-Voit.at> <2016-05-18T14-10-52@devnull.Karl-Voit.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1463574752 12617 80.91.229.3 (18 May 2016 12:32:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 12:32:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 14:32:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b30eJ-0004EN-6P for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 14:32:27 +0200 Original-Received: from localhost ([::1]:44636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30eI-0006sR-F3 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 08:32:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30dK-0006qk-Aj for help-gnu-emacs@gnu.org; Wed, 18 May 2016 08:31:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b30dE-0007m3-I4 for help-gnu-emacs@gnu.org; Wed, 18 May 2016 08:31:25 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40820 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b30dE-0007lV-BD for help-gnu-emacs@gnu.org; Wed, 18 May 2016 08:31:20 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1b30dB-0003k0-3e for help-gnu-emacs@gnu.org; Wed, 18 May 2016 14:31:17 +0200 In-Reply-To: <2016-05-18T14-10-52@devnull.Karl-Voit.at> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110048 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, May 18, 2016 at 02:13:52PM +0200, Karl Voit wrote: > * Yuri Khan wrote: > > On Wed, May 18, 2016 at 5:07 PM, Karl Voit wrote: > > > >> When I paste text from a Windows application to my Emacs (running > >> mainly Org-mode), I get wrong charset. > >> > >> For correcting such wrong character sets, I want to write a function > >> that corrects the charset. > > > > I cannot help with your needs, > > That's OK. > > Besides the good points regarding charset below, I still need to > search&replace some things on the yanked region. > > > but you should not have to jump through > > hoops just to get text encoding right, as long as the originating > > application puts Unicode text on clipboard. (And I’m pretty convinced > > Outlook does.) > > How can I test this? I know very little about Windows these days. But the documentation for the variables "selection-coding-system" and "x-select-request-type" might contain relevant information. You can access this doc with C-h v Hope this gets you a step further - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlc8YJUACgkQBcgs9XrR2kb3cwCeIzxVtUd+OcO/hID1vJRayBbN ukkAn1Upbc1Rap6NCO22+KiyrbrenpHv =EEwS -----END PGP SIGNATURE-----