Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

url encode in asp3

how can I set the url encode in asp3 similar to the asp.net code

Public Shared Function UrlEncode ( _
    str As String, _
    e As Encoding _
) As String

how can I pass the encoding type?

like image 539
user186585 Avatar asked Jun 04 '26 13:06

user186585


2 Answers

Simply call UrlEncode and as the second parameter specify the encoding

http://msdn.microsoft.com/en-us/library/h10z5byc.aspx

This same overload is supported in .net 3 so you should be good.

like image 168
Adam Tuliper Avatar answered Jun 06 '26 07:06

Adam Tuliper


Use Server.URLEncode(string) for classic asp.

<% response.write(Server.URLEncode("http://www.myurl.com?param1=value1&param2=value2")) %>

like image 24
Andy Davies Avatar answered Jun 06 '26 07:06

Andy Davies



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!