[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
function to decode url percent encoding
From: |
Xah Lee |
Subject: |
function to decode url percent encoding |
Date: |
Wed, 08 Dec 2010 15:08:50 -0000 |
User-agent: |
G2/1.0 |
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–Gallai_theorem
that's a EN DASH, unicode 8211.
but that just unhex, and generate gibberish if the url contain unicode
chars.
thanks.
Xah
∑ http://xahlee.org/
☄
- function to decode url percent encoding,
Xah Lee <=