Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4444194

java.net.URLDecoder.decode(s, enc) treats an empty encoding name as "UTF-8"

XMLWordPrintable

    • beta2
    • sparc
    • solaris_2.6



      Name: dfR10049 Date: 04/13/2001


      java.net.URLDecoder.decode(s, enc) treats an empty encoding name and null as "UTF-8".
      There is similar bug #4395472 against URLEncoder.encode(s, enc).
      It has been already fixed so encode(s, enc) throws UnsupportedEncodingException
      in case of empty string or null.
      Implementation of URLDecoder.decode(s, enc) should be also changed to
      process encoding in the same way as URLEncoder.encode(s, enc).

      ======================================================================

            michaelm Michael McMahon
            fdasunw Fda Fda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: