?
Solved

How to encode a hyper link string

Posted on 2002-07-02
3
Medium Priority
?
391 Views
Last Modified: 2007-12-19
Hi,
  I ahve tried to encode a hyperlink to get rid of spaces passed through ina querystring. however I keep getting errors saying that "URLEncode" is either a misplaced package name or a non-existent entity.

Can you give me an example of how my encoding should work?

my test is as follows java.net.URLEncode.encode("my test d data");
0
Comment
Question by:seoirse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 160 total points
ID: 7125357
java.net.URLEncoder.encode("my test d data");
0
 
LVL 2

Expert Comment

by:xxMariusxx
ID: 7125500
heheh...Typo.  You're just missing the 'r';-)  

java.net.URLEncode'r'.encode("my test d data");

Don't worry...happens to the best of us! :-)

Marius
0
 

Author Comment

by:seoirse
ID: 7126463
cheers for teh help guys. both of you were correct
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question