[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-protocol encoding issue
From: |
Alex Lane |
Subject: |
[O] org-protocol encoding issue |
Date: |
Mon, 04 Mar 2013 13:19:14 -0600 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
I am having an encoding problem with org-protocol. Here is my setup:
1. Windows 7 running emacs 24.2 and org-mode 7.8.
2. An Opera bookmark with location:
javascript:location.href=
'org-protocol://capture://w/'+
encodeURIComponent(location.href)+'/'+
encodeURIComponent(document.title)+'/'+
encodeURIComponent(window.getSelection())
3. The following code in my .emacs:
(setq org-capture-templates
`(("w" "Capture snippet" entry (
file+headline "~/org/snip.org" "Snips:")
,(concat "* Fact: '%i' :"
(format "%s" org-drill-question-tag)
":\n:PROPERTIES:\n
:DATE_ADDED: %u\n
:SOURCE_LINK: %c\n:END:\n")
:empty-lines 1
:immediate-finish t)
[...]))
4. The file snip.org starts out encoded as UTF-8.
When I highlight English text and click the bookmark, the highlighted
text is added to the file without any problem.
When I highlight Cyrillic text and click the bookmark, the highlighted
text is apparently added, but I get a warning to the effect that
utf-8-dos had been used in unsuccessfully trying to encode said text.
Accepting the default does not obtain a readable result. Furthermore,
attempts to select more text and create other snippets no longer appear
to work.
In both cases, what had started out as a file encoded in UTF-8 ends up
saved as a file encoded in ANSI.
I was not able to make much sense of posts from a couple of years ago
that appear to address the same or related issue. Can anyone help?
Cheers...
--
Alex Lane <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] org-protocol encoding issue,
Alex Lane <=