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

Request more precise specification of java.net.URLEncoder.encode

XMLWordPrintable

    • beta
    • generic
    • generic



      Name: jn10789 Date: 01/26/99


      The docs say that URLEncoder.encode outputs only ASCII
      letter and digits, '+', and sequences of the form '%XX'
      where XX is a pair of ascii representations of hex digits.

      The source code also allows "_", "-", ".", and "*" to
      pass unmodified, which is perfectly correct (I'm not
      quite as sure about the "*") for URLEncoding.

      The code also converts each character of the String to its
      default external representation using a default
      OutpuStreamWriter. This guarantees that each character fits
      in a byte, as needed by the %XX encoding.
      (Review ID: 53150)
      ======================================================================

            mupadhyasunw Mayank Upadhyay (Inactive)
            jdn Jeffrey Nisewanger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: