Solved

How to encode a hyper link string

Posted on 2002-07-02
3
382 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
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 40 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 73
What is the latest versions eclipse neon 2 141
starter POM and spring-boot-starter,  spring-boot-web 2 43
jar file executable 12 44
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now