how to insert in place of space in android

后端 未结 7 1013
死守一世寂寞
死守一世寂寞 2020-12-08 19:31

I have a xml URL file in which there are white spaces i want to replace white spaces with %20.. how to do this????

SAXParserFactory spf = SAXParserFactory.ne         


        
7条回答
  •  Happy的楠姐
    2020-12-08 20:16

    Try using URIUtil.encodePath method from the api org.apache.commons.httpclient.util.URIUtil.

    This should do the trick for you.

提交回复
热议问题