emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jorge Morais Neto <jorge13515@gmail.com>
To: Anders Johansson <mejlaandersj@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Bug? Encoding trouble in org-id-locations-load
Date: Fri, 3 Nov 2017 19:05:45 -0200	[thread overview]
Message-ID: <CAJR3QndJy-x4B7jvcaqWsPL40wEowTQfR+GOECRNUBXoV9pOCA@mail.gmail.com> (raw)
In-Reply-To: <87po8z5u5h.fsf@gmail.com>

On 3 November 2017 at 12:11, Anders Johansson <mejlaandersj@gmail.com> wrote:
> I use org-id and got some surprising reports of duplicate IDs. It seems that
> the issue is that one of my files containing IDs has a filename consisting
> of some non-ascii characters (a Swedish ä).

This may be related to two problems I had with
~org-icalendar-combine-agenda-files~.  When I invoked that command,
Emacs created some duplicates of buffers for Org files with names
containing non-ASCII Latin-1 characters.  In the names of the
duplicates, each non-ASCII Latin-1 character was replaced by two octal
escape sequences (probably the character code in UTF-8).

The second problem was Emacs interrupting the export to ask me which
character encoding to use for certain "problematic characters".
Strangely, the "problematic characters" were octal escape sequences
which I verified to be correct UTF-8 codes of non-ASCII Latin-1
characters.  Emacs was apparently trying to "reencode" "text" that was
actually UTF-8 code.  Each time I invoked
~org-icalendar-combine-agenda-files~ and Emacs asked that, I chose raw
text encoding so the UTF-8 codes would be left as is.

I finally decided to investigate and traced both problems to some id
links pointing to headlines in files with names containing non-ASCII
Latin-1 characters.  I worked around by setting Org Mode not to export
those links.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/

  reply	other threads:[~2017-11-03 21:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 14:11 Bug? Encoding trouble in org-id-locations-load Anders Johansson
2017-11-03 21:05 ` Jorge Morais Neto [this message]
2017-11-04 21:41 ` Nicolas Goaziou

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=CAJR3QndJy-x4B7jvcaqWsPL40wEowTQfR+GOECRNUBXoV9pOCA@mail.gmail.com \
    --to=jorge13515@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mejlaandersj@gmail.com \
    /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).