From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Operating on yanked region Date: Wed, 18 May 2016 20:59:47 +0300 Message-ID: <83twhv2qng.fsf@gnu.org> References: <2016-05-18T13-02-10@devnull.Karl-Voit.at> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463594424 23608 80.91.229.3 (18 May 2016 18:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 18:00:24 +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 20:00:20 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 1b35lb-0004NH-No for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 20:00:19 +0200 Original-Received: from localhost ([::1]:46369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b35la-0004vA-Qg for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 14:00:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b35lE-0004uE-GC for help-gnu-emacs@gnu.org; Wed, 18 May 2016 13:59:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b35lA-00056k-Rm for help-gnu-emacs@gnu.org; Wed, 18 May 2016 13:59:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b35lA-00056S-Oq for help-gnu-emacs@gnu.org; Wed, 18 May 2016 13:59:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4787 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b35l7-00021a-KW for help-gnu-emacs@gnu.org; Wed, 18 May 2016 13:59:51 -0400 In-reply-to: <2016-05-18T13-02-10@devnull.Karl-Voit.at> (message from Karl Voit on Wed, 18 May 2016 13:07:12 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:110052 Archived-At: > From: Karl Voit > Date: Wed, 18 May 2016 13:07:12 +0200 > > When I paste text from a Windows application to my Emacs (running > mainly Org-mode), I get wrong charset. That shouldn't happen, as Emacs uses Unicode to get text from the clipboard. There should be no charsets involved here. Does this happen in "emacs -Q"? If so, what version of Emacs is that, and is it a native Windows build or a Cygwin build? If this doesn't happen in "emacs -Q", look at your customizations to find the culprit, especially those related to encoding/decoding selections. > For correcting such wrong character sets, I want to write a function > that corrects the charset. This shouldn't be needed (and if it is, then it's impossible in general, because Windows attempts to translate characters, and does that lossily). Suggest instead to find out why Unicode retrieval doesn't work.