From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: function to decode url percent encoding Date: Tue, 18 May 2010 11:12:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291832617 15641 80.91.229.12 (8 Dec 2010 18:23:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 18:23:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 19:23:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQOft-0000HP-RS for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:23:34 +0100 Original-Received: from localhost ([127.0.0.1]:45721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQOft-000721-3S for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 13:23:33 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!a16g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1274206356 17324 127.0.0.1 (18 May 2010 18:12:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 May 2010 18:12:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a16g2000prg.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178249 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75780 Archived-At: is there a function that decode the url percent encoding? e.g. http://en.wikipedia.org/wiki/Sylvester%E2%80%93Gallai_theorem should become http://en.wikipedia.org/wiki/Sylvester=E2=80=93Gallai_theorem that's a EN DASH, unicode 8211. but that just unhex, and generate gibberish if the url contain unicode chars. thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84