From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Morais Neto Subject: Re: Bug? Encoding trouble in org-id-locations-load Date: Fri, 3 Nov 2017 19:05:45 -0200 Message-ID: References: <87po8z5u5h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAj9x-0003hP-IL for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:05:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAj9w-0002vg-Kr for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:05:49 -0400 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:46031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAj9w-0002uc-EM for emacs-orgmode@gnu.org; Fri, 03 Nov 2017 17:05:48 -0400 Received: by mail-pg0-x229.google.com with SMTP id b192so3470939pga.2 for ; Fri, 03 Nov 2017 14:05:48 -0700 (PDT) In-Reply-To: <87po8z5u5h.fsf@gmail.com> 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" To: Anders Johansson Cc: "emacs-orgmode@gnu.org" On 3 November 2017 at 12:11, Anders Johansson wrot= e: > I use org-id and got some surprising reports of duplicate IDs. It seems t= hat > the issue is that one of my files containing IDs has a filename consistin= g > of some non-ascii characters (a Swedish =C3=A4). 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 --=20 - 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/