From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: \200\231 showing in org-mode post Date: Wed, 22 Jan 2014 08:28:46 -0500 Message-ID: <87vbxcb0xd.fsf@gmail.com> References: <20140122111211.33e743ab@london> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zBI-00062v-AU for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:53:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5zBC-00008X-Be for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:53:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:38779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5zBB-000089-W6 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 09:53:22 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5xrX-0001Yw-8d for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 14:28:59 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 14:28:59 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 14:28:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sharon Kimble writes: > When pasting from an article on the web into an org-mode buffer, I > start with - > "In today’s digital age, we are needing more and more passwords to > secure our data and our identity." > and its displayed in the buffer as - > "In todayâ\200\231s digital age, we are needing more and more passwords > to secure our data and our identity." > Is your org-mode buffer in UTF-8 (does it show a U at the left end of the modeline)? I would expect this behavior only when the org-mode buffer is in some 7- or 8-bit mode (ASCII or iso-8859-1). The apostrophe above is a "typographic apostrophe" (Unicode U+2019). If I copy the "today’s" part from above into a file foo.txt and I open the file in emacs using UTF-8 as the coding system, it shows as an apostrophe. If I open it using iso-8859-1, it shows as "todayâ\200\231s". If I look at the file with a binary editor (od -c on Linux) I get: ,---- | $ od -c apostrophe-utf8.txt | 0000000 t o d a y 342 200 231 s \n | 0000012 `---- So it's probably just encoding confusion between the different programs that you use. > I'm using 'simpleclip' which allows me to use 'super-c > simpleclip-copy' as the keybinding. > > In my .emacs I have - > (setq selection-coding-system 'utf-8) > (prefer-coding-system 'utf-8) > (setq x-select-enable-clipboard t) > with 'LANG=en_GB.UTF-8' being the first line in my locale settings. > > How do I get it please that it pastes correctly from the desktop > clipboard, and how do I get what is already pasted, and shows the > aberrant behaviour, corrected please? > If you just open the file in UTF-8, does the ugliness go away? -- Nick