JDK-4206144 : Request more precise specification of java.net.URLEncoder.encode
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.1.7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-01-26
  • Updated: 2000-04-28
  • Resolved: 2000-04-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Related Reports
Relates :  
Description

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)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
14-06-2004

WORK AROUND Name: jn10789 Date: 01/26/99 An author can write his or her own utility method, that does whatever he or she wishes to be done. ======================================================================
11-06-2004

EVALUATION mayank.upadhyay@eng 2000-04-24 See evaluation for bugid 4257115
24-04-2000