This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 19, 2013, 3:01 AM
5 Posts

Encoding URL in SSJS

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
 How can i encode the URL parameter? encodeURI is not working even the java.net.URLEncoder.encode("url","UTF-8")..

I need to encode the parameter because the variable have spaces..


Thanks 
Apr 19, 2013, 6:20 AM
54 Posts
Re: Encoding URL in SSJS
In a java  library I use encode(String).
In LS URLEncode(String) .
 

If you only have spaces to encode in JS you can use escape(String)   

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal