You can also use UriEncode, but this function is only pressed in javascript, but you can switch the language in asp-classic
<SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
function fnencodeURIComponent(n)
{
return encodeURIComponent(n)
}
function fndecodeURIComponent(n)
{
return decodeURIComponent(n)
}
</SCRIPT>
<% 'normal asp
url = fnencodeURIComponent(myString)
%>
source
share