use an encode method....it will encode the url for you. It knows what every character maps to....
hvgotcodes
2010-07-15 23:05:58
use an encode method....it will encode the url for you. It knows what every character maps to....
Use replaceAll instead of replace.
Although, you should really be doing proper URL encoding. You can use URLEncoder.encode
for example.