From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: unhex org-link for shell command Date: Wed, 17 Jan 2018 22:40:51 +0100 Message-ID: <87a7xcrwnw.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebvS6-0001Uk-Eh for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 16:40:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebvS2-0005k0-2t for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 16:40:58 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:55055) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebvS1-0005jP-Sb for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 16:40:54 -0500 In-Reply-To: (numbchild@gmail.com's message of "Wed, 17 Jan 2018 17:55:22 +0800") 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: "numbchild@gmail.com" Cc: Org-mode Hello, "numbchild@gmail.com" writes: > I'm developing an Emacs package > https://github.com/stardiviner/org-send-ebook . > I found Org-mode hex spaces in filename with "%20", So I reverse this with > function `(url-unhex-string (org-element-property :path > (org-element-context)))`. But this only works for English filename. If it > is Chinese filename. this will caused error. You can use `org-link-unescape'. Regards, -- Nicolas Goaziou