I have a String
that contains for example:
Hello are you ok ?
I want to convert this String to:
Hello%20are%20you%20ok%20?
What do we call that and how can I do it in Java? Cause when I send a HttpRequest
, the server doesn't understand the words without these special characters...