Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URLEncoder Deprecation  RSS feed

 
henri henri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My method appends a String to the end of a URL via the encode() method to enable someone to search the Internet.
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Serge\film_titles\build\classes
C:\Documents and Settings\Serge\film_titles\src\film_titles\SE800i.java:280: warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated
url += URLEncoder.encode(keyword);
1 warning
compile-single:
run-single:



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

 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!