NerdyHearn
Home
Blog

Contact
Mailing List

Software


Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

URLEncode In Your Language Of Choice

Thursday, February 5th, 2009

I spend a lot of time working on projects that require URL Encoding so I figured I would post the quick snippets (functions) used to do so. Enjoy!

Encode:
ASP.NET - System.Web.HttpUtility.UrlEncode(buffer, Encoding.Default)
Legacy ASP - Server.URLEncode
Java - java.net.URLEncoder.encode
PHP - urlencode()
ColdFusion - URLEncodedFormatstring

Decode:
ASP.NET - System.Web.HttpUtility.UrlDecode(buffer, Encoding.Default)
Legacy ASP - No official URLDecode, but many implementations available online
Java - java.net.URLDecoder.decode
PHP - urldecode()
ColdFusion - URLDecodeurlEncodedString

If I've missed your favorite language just add it in the comments!

URLEncodin' Tom Out.

Tags

Web_Development

Related Blogs

Differences including javascript file in MSIE and Firefox
ASP.NET Best Practices

Comments

Currently no comments.

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers