Hello,
When I try to shorten a link with "#,&" character I get an exception. Is there a way to handle these character properly?
This is a sample code that works:
String shortUrl = bitly.getShortUrl("http://z"); //Works
If I add for example '&' or '%25' to the string it will throw an exception:
String shortUrl = bitly.getShortUrl("http://z%26"); // Exception
String shortUrl = bitly.getShortUrl("http://z&"); // Exception
The getShortUrl
function from this Java class.
Thanks