* Strange character inserted by org-capture
@ 2010-11-11 10:46 Paul Mead
2010-11-11 14:39 ` Giovanni Ridolfi
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mead @ 2010-11-11 10:46 UTC (permalink / raw)
To: emacs-orgmode
Hi
I have a setup which uses Dropbox to keep files in sync, between my
Ubuntu Linux machine at home, and Windows XP at the office.
I have the following setup in org-capture:
(setq org-capture-templates (quote (("n" "Note" entry (file+headline "~/My Dropbox/gtd/notes.org" "Notes") "* %^{topic}\n%^T%?")
("c" "Contact - BBDB" entry (file+headline "~/My Dropbox/gtd/notes.org" "Notes")
"* %^t %^{Contact type|Call|Meeting} with %:name - %^{subject} %^G\n%a\n%?")
("C" "Contact - no BBDB" entry (file+headline "~/My Dropbox/gtd/notes.org" "Notes")
"* %^t %^{Contact type|Call|Meeting} with %^{name} - %^{subject} %^G\n%?")
("x" "Index item" entry (file+headline "~/My Dropbox/gtd/notes.org" "Notes")
"* %^t %^{topic} page %^{book--page number} %^G")
("q" "Quick capture (inbox)" entry (file "~/My Dropbox/gtd/capture.org")
"* %^{description}")
("t" "TODO" entry (file+headline "~/My Dropbox/gtd/gtd.org" "08 Todos")
"* TODO %^{todo description} %^G\n%u")
("p" "Project" entry (file+headline "~/My Dropbox/gtd/gtd.org" "05 Projects")
"* %^{Project description} %^G :project:\n%u")
("r" "RFS" entry (file+headline "~/My Dropbox/gtd/gtd.org" "06 RFS")
"* %^{yyyymmyy description rfs no} %^G :project:%u")
("i" "Invoice" entry (file+headline "~/My Dropbox/gtd/invoicing.org" "Invoicing")
"* TODO %^{Supplier|supplier1|supplier2|supplier3} %^{Account} invoice %^{Invoice number} - £%^{Amount Ex VAT} - %^{Date (dd mmm yy)}\n%u"
))))
I am experiencing some strange behaviour when using the last option
(Invoice) on my XP machine. The template inserts a strange character (I
don't recognise it but it looks like an upper case A with a symbol above
it) immediately before the £ sign.
This doesn't happen on the Linux machine using the same files, same
template, etc.
Any ideas?
Thanks, Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strange character inserted by org-capture
2010-11-11 10:46 Strange character inserted by org-capture Paul Mead
@ 2010-11-11 14:39 ` Giovanni Ridolfi
2010-11-11 14:56 ` Eric S Fraga
2010-11-11 15:19 ` Paul Mead
0 siblings, 2 replies; 4+ messages in thread
From: Giovanni Ridolfi @ 2010-11-11 14:39 UTC (permalink / raw)
To: Paul Mead; +Cc: emacs-orgmode
Paul Mead <paul.d.mead@gmail.com> writes:
Hi, Paulm
>
> I have the following setup in org-capture:
>
> (setq org-capture-templates (quote (
> ("i" "Invoice" entry (file+headline "~/My Dropbox/gtd/invoicing.org" "Invoicing")
> "* TODO %^{Supplier|supplier1|supplier2|supplier3} %^{Account} invoice %^{Invoice number} - £%^{Amount Ex VAT} - %^{Date (dd mmm yy)}\n%u"
> ))))
>
> I am experiencing some strange behaviour when using the last option
> (Invoice) on my XP machine. The template inserts a strange character (I
> don't recognise it but it looks like an upper case A with a symbol above
> it) immediately before the £ sign.
Also my template with the "÷" character showed the same behaviour.
I think it's a problem of file encoding.
+ Is your .emacs utf-8? I mean the file where you store the
"(setq org-capture-templates (quote"
+ is invoicing.org utf-8?
C-x RET f utf-8 # change file encoding
hth
Giovanni
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strange character inserted by org-capture
2010-11-11 14:39 ` Giovanni Ridolfi
@ 2010-11-11 14:56 ` Eric S Fraga
2010-11-11 15:19 ` Paul Mead
1 sibling, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2010-11-11 14:56 UTC (permalink / raw)
To: Giovanni Ridolfi; +Cc: emacs-orgmode, Paul Mead
Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
> Paul Mead <paul.d.mead@gmail.com> writes:
>
> Hi, Paulm
>>
>> I have the following setup in org-capture:
>>
>> (setq org-capture-templates (quote (
>> ("i" "Invoice" entry (file+headline "~/My Dropbox/gtd/invoicing.org" "Invoicing")
>> "* TODO %^{Supplier|supplier1|supplier2|supplier3} %^{Account} invoice %^{Invoice number} -
> £%^{Amount Ex VAT} - %^{Date (dd mmm yy)}\n%u"
>> ))))
>>
>> I am experiencing some strange behaviour when using the last option
>> (Invoice) on my XP machine. The template inserts a strange character (I
>> don't recognise it but it looks like an upper case A with a symbol above
>> it) immediately before the £ sign.
This is the result of an UTF-8 encoded character being displayed as a
sequence of latin-1 (or similar encoding) characters.
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.49.g0239)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strange character inserted by org-capture
2010-11-11 14:39 ` Giovanni Ridolfi
2010-11-11 14:56 ` Eric S Fraga
@ 2010-11-11 15:19 ` Paul Mead
1 sibling, 0 replies; 4+ messages in thread
From: Paul Mead @ 2010-11-11 15:19 UTC (permalink / raw)
To: emacs-orgmode
Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:
> Also my template with the "÷" character showed the same behaviour.
>
> I think it's a problem of file encoding.
>
> + Is your .emacs utf-8? I mean the file where you store the
> "(setq org-capture-templates (quote"
> + is invoicing.org utf-8?
>
> C-x RET f utf-8 # change file encoding
>
> hth
> Giovanni
Changing the init file encoding did the trick, thanks!
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-11 15:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 10:46 Strange character inserted by org-capture Paul Mead
2010-11-11 14:39 ` Giovanni Ridolfi
2010-11-11 14:56 ` Eric S Fraga
2010-11-11 15:19 ` Paul Mead
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).