Home > APEX_UTIL > URL_ENCODE Function
This function encodes (into hexadecimal) all special characters that include spaces, question marks, and ampersands.
Syntax
APEX_UTIL.URL_ENCODE ( p_url IN VARCHAR2) RETURN VARCHAR2;
Parameters
Table: URL_ENCODE Parameters describes the parameters available in the URL_ENCODE
function.
Example
DECLARE l_url VARCHAR2(255); BEGIN l_url := APEX_UTIL.URL_ENCODE('http://www.myurl.com?id=1&cat=foo'); END;