From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: \200\231 showing in org-mode post Date: Wed, 22 Jan 2014 16:22:54 +0000 Message-ID: <20140122162254.38405076@london> References: <20140122111211.33e743ab@london> <87vbxcb0xd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/O6akTYN80zFt8dhxzEgb37I"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W60a8-00015I-L8 for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 11:23:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W60a4-0006bp-7f for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 11:23:12 -0500 Received: from out1.ip07ir2.opaltelecom.net ([62.24.128.243]:28100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W60a3-0006bi-Rk for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 11:23:08 -0500 In-Reply-To: <87vbxcb0xd.fsf@gmail.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org --Sig_/O6akTYN80zFt8dhxzEgb37I Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 22 Jan 2014 08:28:46 -0500 Nick Dokos wrote: > Sharon Kimble writes: >=20 > > When pasting from an article on the web into an org-mode buffer, I > > start with -=20 > > "In today=E2=80=99s 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=C3=A2\200\231s digital age, we are needing more and more > > passwords to secure our data and our identity." > > >=20 > 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). Yes. >=20 > The apostrophe above is a "typographic apostrophe" (Unicode U+2019). > If I copy the "today=E2=80=99s" 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=C3=A2\200\231s". >=20 > If I look at the file with a binary editor (od -c on Linux) I get: >=20 > ,---- > | $ od -c apostrophe-utf8.txt=20 > | 0000000 t o d a y 342 200 231 s \n > | 0000012 > `---- >=20 > So it's probably just encoding confusion between the different > programs that you use. >=20 > > 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=3Den_GB.UTF-8' being the first line in my locale settings.=20 > > > > 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? > > >=20 > If you just open the file in UTF-8, does the ugliness go away? >=20 I don't know how to do that, sorry. But, when I went through my foo.org file correcting them all, they all seemed to be either ' or " . So I had a look in my .emacs and found that I was using - ;; Turn ' and " into =E2=80=98posh=E2=80=99 =E2=80=9Cquotes=E2=80=9D ;;(setq org-export-with-smart-quotes t) so I commented it out as you can see, and I'm now just carrying on as normal and just waiting to see if that clears it up.=20 Thanks Sharon. --=20 =EF=BB=BFA taste of linux =3D http://www.sharons.org.uk efever =3D http://www.efever.blogspot.com/ efever =3D http://sharon04.livejournal.com/ my git repo =3D https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1 Registered Linux user 561944 --Sig_/O6akTYN80zFt8dhxzEgb37I Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJS3/BoAAoJEDaBgBkK+INb1fwP/2KFkInoz9i63kQKUay6fuC6 lL0WNgC6Lnr0hSpD5eNnBL4enR4tkaahLVzvHtJSsFWAV+Es4xpVXtup3gUXmVvU 8nZMBhC1vGLw1CVzzrgRp/RvOkwv3EOKTUOV5o4bOm/DlwoFWk30vh+dWVn8jskJ FQLzO5woJZ2bvJxChv1Do8jf+2LSm6gmpKENdwHuhdffm4AAVYALqZDt6sjGLBv6 tPWn6tgeblJ1csGnxikLF3ey0nduRXiLoQUnQey8yet4xNvcHc1ufZoru0DOeZEX DiwfezFpBZ/HISVPvZgropaqODSvyGJk/ncBoNYOhDG/oW13fDmenfNpFFiNps8M t7aDWN5grgHXanGySr6EhJMpg+7wzmDqTbXddoBZaJYHEWd6sIKxlFb6fX8i2aQn DVjdnmgjySEJyS9RJseY7Dxq4E7udG8YpXCsX0wb+lagweeX2ou+ryeWaHrH3NsU uUN8nIiSDHHznuATFgCjLGUbPYDcOu4XhxEwABiTdOEuP+3fsdHB0zCkxdfekWKI Q3KqclZwBYJiwt61dCWvRPmWlEn3RL1bmW0T9sZz+Pg7TKhWWLsv6bNdfm2530i3 c2LlAxPQg3fi/yEy17PJM91asaLlZSjCNNCCknvm0HDnuwN61zmnU26AvgVj+iQz woTt/6qDQsIzelzNCWME =Dlqe -----END PGP SIGNATURE----- --Sig_/O6akTYN80zFt8dhxzEgb37I--