For Programmers: Free Programming Magazines  


Home > Archive > ASP > June 2005 > Server.HTMLDecode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Server.HTMLDecode
b.Wurm

2005-06-07, 3:56 pm

how can I write a server.htmlDecode function?

thank you


Steven Burn

2005-06-07, 3:56 pm

Function URLDecode(sDec)
dim objRE
set objRE =3D new RegExp
sDec =3D Replace(sDec, "+", " ")
objRE.Pattern =3D "%([0-9a-fA-F]{2})"
objRE.Global =3D True
URLDecode =3D objRE.Replace(sDec, GetRef("URLDecodeHex"))
End Function

'// Replacement function for the above
Function URLDecodeHex(sMatch, lhex_digits, lpos, ssource)
URLDecodeHex =3D chr("&H" & lhex_digits)
End Function

--=20
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"b.Wurm" <Bernhard@eworx.at> wrote in message =
news:#Y5vmw2aFHA.616@TK2MSFTNGP12.phx.gbl...
> how can I write a server.htmlDecode function?
>=20
> thank you=20
>=20
>=20


McKirahan

2005-06-07, 3:56 pm

"b.Wurm" <Bernhard@eworx.at> wrote in message
news:#Y5vmw2aFHA.616@TK2MSFTNGP12.phx.gbl...
> how can I write a server.htmlDecode function?
>
> thank you


"Steven Burn" didn't credit the source:
http://flangy.com/dev/asp/urldecode.html


Steven Burn

2005-06-07, 3:56 pm

My apologies (C&P'd to a local file a while ago, but didn't bookmark the =
URL I got it from)

--=20
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"McKirahan" <News@McKirahan.com> wrote in message =
news:J6ydnVrei7q2WjjfRVn-qw@comcast.com...
> "b.Wurm" <Bernhard@eworx.at> wrote in message
> news:#Y5vmw2aFHA.616@TK2MSFTNGP12.phx.gbl...
>=20
> "Steven Burn" didn't credit the source:
> http://flangy.com/dev/asp/urldecode.html
>=20
>=20


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com