Name: nt126004 Date: 08/30/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
URLEncoder.encode and URLDecoder.decode use different default encoding in 1.3
and 1.4
Existing programs rely on 1.3 default encoding (ASCII) and he two method can't
take any parameter.
In 1.4, calling this methods with no parameter will use the 1.4 default
encoding (UTF-8). So decoding existing data will produce wrong results.
Calling with a parameter specifying the correct encoding will not work in 1.3
So, the user has to synchronize switching to 1.4 with rewriting the code which
is celarly unacceptable.
(Review ID: 131000)
======================================================================
- relates to
-
JDK-4510342 tracking CCC request 4498214
-
- Closed
-