Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

How to decode the urls again before printing them

Hello,

Shaun Inman I have a question for you

since the script will corrupt the URLs that includes “Arabic chars” well i need to fix it so can you please answer my questions if possible

I want to know which file and line exactly responsible for encoding the URLs before adding them to the database

Also i don’t know why urldecode “PHP” is not working on the codes that the script get from the database

for example

This URL : http://ps-revolution.com/search-%u0635% … 28786.html

Should give this after decoding using php: http://ps-revolution.com/search-ص … 28786.html

for some reason php is returning the same URL with no changes

but after googling i found this website to be able to decode the URL properly http://meyerweb.com/eric/tools/dencoder

my objective is to encode the URL as they are, not after converting them to UTF8 i want to URL to be encoded as it comes from the browser, because the URL that i get from the script is converted to UTF8 and then encoded “I GUESS”

I appreciate any help from your side

Shaun Inman
Mint/Pepper Developer
Posted on Apr 23, '08 at 09:32 am

I’m sorry but custom modifications to Mint’s source are not supported. You can make them but you’re on your own as far as making those changes and support goes.

You must be logged in to reply. Login above or create an account