To encode a URL in Java you can use the following snippet.
Also take a look at How to decode a URL in Java.
Sample Java
URLEncoder.encode("https://codesnippets.fesslersoft.de/");
All the Code Snippets and Samples you need
To encode a URL in Java you can use the following snippet.
Also take a look at How to decode a URL in Java.
URLEncoder.encode("https://codesnippets.fesslersoft.de/");
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to encode a URL in #Java http://t.co/GyD3UoQHog #programming #code #coding #dev #develop #dotnet #php