"digg" button and encoded url :S
Posted
by
guest86
on Stack Overflow
See other posts from Stack Overflow
or by guest86
Published on 2011-01-01T14:28:28Z
Indexed on
2011/01/01
14:54 UTC
Read the original article
Hit count: 230
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:
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! :)
© Stack Overflow or respective owner