Simple question from a Java novice. I want to encode a url so that nonstandard characters will be transformed to their hex value (that is %XX) while characters one expects to see in a url - letter, digits, forward slashes, question marks and whatever, will be left intact.
For example, encoding
"hi/hello?who=moris\\boris"
should result with
"hi/hello?who=moris%5cboris"
ideas?