public void testUrlDecoderIgnoresUnnecessaryCharset() throws Exception {
  try {
    assertEquals("ab",URLDecoder.decode("ab","no-such-charset"));
  }
 catch (  UnsupportedCharsetException expected) {
  }
}

public void testUrlDecoderIgnoresUnnecessaryCharset ( ) throws Exception { try { assertEquals ( "ab" , URLDecoder . decode ( "ab" , "no-such-charset" ) ) ; } catch ( UnsupportedCharsetException expected ) { } }
the ri looks up the charset lazily ; android looks it up eagerly . either behavior is acceptable .
