The moose likes Java in General and the fly likes URLEncoder Deprecation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "URLEncoder Deprecation" Watch "URLEncoder Deprecation" New topic

URLEncoder Deprecation

henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
My method appends a String to the end of a URL via the encode() method to enable someone to search the Internet.
Compiling 1 source file to C:\Documents and Settings\Serge\film_titles\build\classes
C:\Documents and Settings\Serge\film_titles\src\film_titles\ warning: [deprecation] encode(java.lang.String) in has been deprecated
url += URLEncoder.encode(keyword);
1 warning

Is there an equivalent new method to do the same job?

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24193

Did you go and read the Javadoc for this class?

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: URLEncoder Deprecation
It's not a secret anymore!