homepage Welcome to WebmasterWorld Guest from 54.197.108.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
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.

:(

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved