From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sander Boer Subject: Re: how to sanitize org-protocol text ? Date: Fri, 10 Apr 2015 09:29:08 +0200 Message-ID: <55277BC4.9070501@gmail.com> References: <5525358C.6040005@gmail.com> <871tjuq8p5.fsf@turing.flintfam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTNO-0003wJ-8W for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 03:29:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgTNK-0007cA-7w for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 03:29:18 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTNJ-0007c0-Tj for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 03:29:14 -0400 Received: by wizk4 with SMTP id k4so118278604wiz.1 for ; Fri, 10 Apr 2015 00:29:12 -0700 (PDT) In-Reply-To: <871tjuq8p5.fsf@turing.flintfam.org> 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: "Samuel W. Flint" , emacs-orgmode@gnu.org Hi Samuel, thank you for replying. Yes I am on windows 7, I forgot to mention that. I have not tested this behavior on win 8 yet. winhate.Add("Ah windows, a deep well of sorrow and disappointment (maildir on win anyone?).") Anyway, selection-coding-system : utf-8 current-language-environment: Dutch file-name-coding-system: nil default-file-name-coding-system: utf-8 w32-unicode-filenames: t I was under the impression that setting all the file codings to unicode would remove conding issues, but judging from the amount of posts of Xah Lee on the subject I think I should know better. gr. S On 9-4-2015 5:31, Samuel W. Flint wrote: > Sander Boer writes: > >> Hi, >> >> I just set up org-protocol and it works fine. However, when I have >> text selected to have it end up in the body of the new note I get >> presented with two problems: >> >> - Every linebreak has a trailing ^M, this does not happen when I paste >> the text. > Are you on Windows? > >> - Unicode quote symbols ? The text is speckled with \222 ("there’s" >> becomes "there\222s") or \221 (‘quote’ becomes \221quote\222) > Again, are you on Windows? > >> Is there a solution ? > What are the values of the following? > - selection-coding-system > - current-language-environment > - file-name-coding-system > >> gr >> S >> >> > HTH, > > Sam > > -- > Samuel W. Flint > swflint@flintfam.org (402) 517-8468 > freenode: swflint > http://flintfam.org/~swflint > 4096R/266596F4 > (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) > "The most dangerous phrase in the language is, 'We've always done it > this way'." -- Grace Hopper