i am displaying images from url using xml parsing,some images are displaying very well,some time i got exception like
Illegal character in path at index 113: http://www.theblacksheeponline.com/party_img/thumbspps/12390867930_15951_186997180114_709920114_4296270_6115611_n[1].jpg
How can i solve this problem,anybody know,please give some sample code for me...
Thanks All
解决方案
Special characters need escaping such as %5B for [ and %5D for ]
You can use the java.net.URLEncoder to encode the URL as injava.net.URLEncoder
URLEncoder.encode(myurltoencode,"UTF-8");
This will not just fix the [ or ] but also other encoding issues