Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 10:28 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: URLEncoder issues
PostPosted: Wed Oct 22, 2008 1:30 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

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! :)


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: URLEncoder issues
PostPosted: Wed Oct 22, 2008 1:33 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 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


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 Issues with class, need help
 skymiles Right Sidebar - Issues
 Issues

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team