Hello,
How can i remove with php characters like this => %e2%80%93-
I have made a sitemap script for my sites and got some of these urls when i store them in a database table.
Cheers,
Kris
Hello,
How can i remove with php characters like this => %e2%80%93-
I have made a sitemap script for my sites and got some of these urls when i store them in a database table.
Cheers,
Kris
That has to be an encoding error.
Perhaps these; urlencode and [URL=“http://www.php.net/manual/en/function.urldecode.php”]urldecode ?
Try running urldecode on the data before processing it further. Make sure that the un-encoded data is safe for the rest of your script though, so do some testing afterward.
well it gives another output now => out-it’s
It’s strange i get this kind of urls
Are your charsets consistent in your database as on your webpages?
Like, are you consistently using Unicode, or ISO-8859-1, or UTF-8 throughout, even in your database fields?
well i see the url is stored the same in the database no unicode or utf-8. The urls are parsed from an xml parser. Maybe i can pm you the code ?
Post up the relevant portion of the code on here inside [noparse]
[/noparse] tags.
--
So you're saying that in the database the URLs look exactly as they should, but it's when you later output the stored URLs onto a webpage they're looking funny?
Hi wizzard81.
Just following up. Have you had any luck with it since?