• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 823
  • Last Modified:

What is the Java equivalent to Server.URLEncode( ) ?

Hi Experts,

What is the Java equivalent to Server.URLEncode( ) ?

THANKS
0
indyng
Asked:
indyng
  • 2
1 Solution
 
smaccariCommented:
The JavaScript global function escape() should do the job.
Use :

escape(yourStringToEscape);
0
 
smaccariCommented:
By the way, i read your question again, and if you're lokking for Java equivalent (not Javscript - but you're in the wrong TA then), you can do:

java.net.URLEncoder.encode(stringToEncode);
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now