If I were to encode a string using the encode method of the URLEncoder class, when will it throw the UnsupportedEncodingException?
String encodedString = URLEncoder.encode(myString, "UTF-8");
I have read the documentation which reads,
Throws: UnsupportedEncodingException - If the named encoding is not supported
So, will this ever happen to my code if I always use "UTF-8"?
myString?"XYZ".?or the unicode replacement character�(or U+FFFD).