"digg" button and encoded url :S
- by guest86
Hi!
I wrote a php site (it's still a prototype) and i placed a "Digg" button. Placing the button was easy but....
Official manual says "url has to be encoded". I did that with urlencode(). After urlencode, my url looks like this:
http%3A%2F%2Fwww.mysite.com%2Fen%2Fredirect.php%3Fl%3Dhttp%3A%2F%2Fwww.othersite.rs%2FNews%2FWorld%2F227040%2FRusia-Airplane-crashed%26N%3DRusia%3A+Airplane+crashed
So far, so good but when i want to submit that url to digg, it is recognized as invalid url:
http://www.mysite.com/en/redirect.php?l=http://www.othersite.rs/News/World/227040/Rusia-Airplane-crashed&N=Rusia:+Airplane crashed
If i place a "+" between "Airplane" and "crashed" (mere end of a link), then digg recognize it without any problems!
Please help, this bizare problem is killing my braincells!
P.S. for purpose of this answer urls are changed (nonexisting) because, in original, non-english sites are involved
P.S.S. Happy New Year! :)