Our project is originally developed on JDK 1.3.1.
Now we are proting this application to JDK 1.4.
We are using a method java.net.URLEncoder.encode(....)
The signature for this in 1.3.1 is encode(stringToBeEncoded)
and that in 1.4 is encode(stringToBeEncoded, supprotedCharacterEncoding - UTF-8)
Now I have used the later method as first one is deprecated in 1.4. But at the
same time we also have to take care of Backward Compatibility of our application
i.e. with JDK 1.3.1.
Would anyone please suggest how do I use encode(....) so that my code remains
compatible with both JDK1.3.1 and JDK1.4??