Is there a way to URL encode a string in a variable? I have strings containing things like ampersands that need to be converted to %26 and similar.
Printable View
Is there a way to URL encode a string in a variable? I have strings containing things like ampersands that need to be converted to %26 and similar.
Flash uses 'escape' and 'unescape' to url-encode/decode files.
url_encoded_string = escape(string);
clean_string = unescape(url_encoded_string);