Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Invalid characters in URLs Trying to create sitemap generator Karma msg:3325973 8:44 am on Apr 30, 2007 (gmt 0) Hey all,
Another invalid character question!
I'm trying to develop my own sitemap generator. If I have a ¼ (1 quarter) symbol in the URL to be generated, I need to convert the symbol to a URL friendly equivalent. Previously, the 3rd part sitemap generator converted this symbol to ¼ yet I can only convert to ¼ using htmlspecialchars/htmlentities which Google rejects.
Any idea how to convert to the correct format?
breham msg:3325980 8:57 am on Apr 30, 2007 (gmt 0)
Not sure how you're creating the string but couldn't you do a str_replace on the string?
Brett Karma msg:3325991 9:05 am on Apr 30, 2007 (gmt 0)
I could, but I need to convert any invalid character to that 'version' character code, or any URL friendly format.