Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Function to convert HTML %XX to Char?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dave.
Senior Member

USA
1037 Posts

Posted - 13 February 2004 :  17:42:44  Show Profile
I'm working on a VB application that requires web-based POST input.

If 'txt1' (Value = '1&') is posted from a webpage to the server it is encoded by the browser. So it is seen as: txt1=1%26.

Anyone have a function with all the HTML %** codes? I really can't even even find a list of all of them anywhere.

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 13 February 2004 :  17:57:20  Show Profile  Visit D3mon's Homepage
http://www.w3schools.com/html/html_ref_urlencode.asp


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 15 February 2004 :  20:16:20  Show Profile
Thanks.

Oh, this'll be fun to make a function that converts them..
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 16 February 2004 :  05:52:39  Show Profile
Don't want to spoil your fun but there are various functions out there that will alrady do this:

e.g.
Function URLDecode(ByVal pstrIn)
	Dim p

	pstrIn = Replace(pstrIn, "+", " ")

	p = InStr(1, pstrIn, "%")
	Do While p>0
		pstrIn = Left(pstrIn, p-1) & Chr(Cint("&H" & Mid(pstrIn, p+1, 2))) & Mid(pstrIn, p+3)
		p = InStr(p+1, pstrIn, "%")
	Loop

	URLDecode = pstrIn
End Function
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07