Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

encodeURIComponent equivalent in Java?

Thread view: 
int80 - 14 Mar 2006 16:56 GMT
Is there an equivalent  for encodeURIComponent in Java?
tom fredriksen - 14 Mar 2006 17:33 GMT
> Is there an equivalent  for encodeURIComponent in Java?

Do you think you could explain in detail what it does or give a link to
some documentation of this function? It would make it much easier for
people to answer your question.

/tom
int80 - 14 Mar 2006 17:40 GMT
encodeURIComponent is a JavaScript URI Encoding function.

See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/j
smthencodeuricomponent.asp

Thomas Fritsch - 14 Mar 2006 18:10 GMT
> encodeURIComponent is a JavaScript URI Encoding function.
>
> See:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/j
smthencodeuricomponent.asp

I'm not sure about the subtle differences between URI and URL.
But I think URLEncoder.encode(String) is roughly what you want.
<http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html#encode(java.lan
g.String
)>

Signature

"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.