URL decoding: UnsupportedEncodingException in Java

后端 未结 3 707
说谎
说谎 2020-12-08 18:43

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

3条回答
  •  误落风尘
    2020-12-08 19:02

    In your special case - no, it won't be thrown. Unless you execute your code in a Java runtime that does not support "UTF-8".

提交回复
热议问题