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)
======================================================================
- relates to
-
JDK-4257115 URLEncoder and URLDecoder should support target character sets
- Resolved