Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

java.net.URLEncoder.encode(....) for JDK1.4

  Asked By: Ruben    Date: Dec 20    Category: Java    Views: 996

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??



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on java.net.URLEncoder.encode(....) for JDK1.4 Or get search suggestion and latest updates.