Encode and Decode string to/from URI

Works well to encode and decode from @URLencode. Escape characters.
JavaScript • Lotus Formula


function encode(str) {
	return encodeURIComponent(str);
}
function decode(str) {
	return decodeURIComponent(str.replace(/\+/g,  " "));
}

Posted by fbrefere001 on Tuesday April 17, 2012