Total members 11895 |It is currently Sun Dec 22, 2024 4:59 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





I'm just a beginner at Java API webservlets, so I need someone to help
me out, as I understand that URLEncoder.encode is deprecated in the
latest jdk1.4.8 (and higher), I'm not quite sure how to recode the
following statement:

String againLink = URLEncoder.encode(req.getHeader("Referer"));

If anyone can help me out with this would be greatly appreciated! :)




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

I think you can use:
URLEncoder.encode(String s, String enc)
s - String to be translated.
enc - The name of a supported character encoding.

For supported character encoding, see
http://java.sun.com/javase/6/docs/api/j ... arset.html

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : URLEncoder issues
 skymiles Right Sidebar - Issues     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com