Translate special characters from URL

Posted on 2007-10-01
Last Modified: 2012-08-14
Is there a function or some easy way to translate hex special characters from a url to regular charaters. Example:

filename%20with%20spaces.ext => filename with spaces.ext

Only, with any %## characters. Sort of the opposite of htmlentities()
Question by:steveo225
    LVL 13

    Accepted Solution

    LVL 4

    Author Comment

    Perfect, thanks, I knew it existed, just couldn't figure out the function name, and since I didn't use url or decode in the google search, it wasn't helpful
    LVL 4

    Author Comment

    Sorry, I hit accept, something must have gone wrong, Ill try again

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now