• Post Reply Bookmark Topic Watch Topic
  • New Topic

spaces in url

 
Syed Kamran Ali
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i pass spaces and then recreate origional string with spaces
when passing data through url.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try replacing the spaces with %20 (this is the escape code for the space character)
 
eshwar kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can pass string with spaces using java.net.URLEncoder.encode();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!