emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sander Boer <sanboer@gmail.com>
To: "Samuel W. Flint" <swflint@flintfam.org>, emacs-orgmode@gnu.org
Subject: Re: how to sanitize org-protocol text ?
Date: Fri, 10 Apr 2015 09:29:08 +0200	[thread overview]
Message-ID: <55277BC4.9070501@gmail.com> (raw)
In-Reply-To: <871tjuq8p5.fsf@turing.flintfam.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 <sanboer@gmail.com> 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      <XMPP>
> 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

  parent reply	other threads:[~2015-04-10  7:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 14:05 how to sanitize org-protocol text ? Sander Boer
     [not found] ` <871tjuq8p5.fsf@turing.flintfam.org>
2015-04-10  7:29   ` Sander Boer [this message]
2015-04-10  8:32     ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55277BC4.9070501@gmail.com \
    --to=sanboer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=swflint@flintfam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).