What I understand from the documentation is that UnsupportedEncodingException can only be thrown if I specify a wrong encoding as the second parameter to URLDecoder.decode(S
That's because of the odd choice to make UnsupportedEncodingException checked. No, it won't be thrown.
UnsupportedEncodingException
I usually do as follows:
} catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 not supported"); }