Article
home/blog/Loading

How to decode a string in java

To decode a string in Java you can import java.net.URLDecoder.decode

Decoding a string

Using this import you can use it like the following to decode strings

String decoded = decode(encodedString, "UTF-8");