| 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? Many thanks
|
breham

msg:3325980 | 8:57 am on Apr 30, 2007 (gmt 0) | Hi Karma, Not sure how you're creating the string but couldn't you do a str_replace on the string? Cheers Brett
|
Karma

msg:3325991 | 9:05 am on Apr 30, 2007 (gmt 0) | Hi, I could, but I need to convert any invalid character to that 'version' character code, or any URL friendly format. :(
|
|
|