Search code examples
c#urlurl-encoding

Are url encoding implementations standardised across languages?


I'm building a web service in c#, and I want to retrieve strings passed as url parameters. I'm intending on decoding these strings using c#'s HttpUtility.UrlDecode method. Obviously this service will work fine for clients who have encoded the parameters using the corresponding urlencode method in c#, but will it work for clients using url encode methods of other programming languages?

I'm aware there is a standard defined for url encoding, http://en.wikipedia.org/wiki/Percent-encoding#Current_standard , but do (most common) langauges conform to it, and interact happily with each other?

Thanks


Solution

  • That's what standards are meant for. To allow interoperability between systems built with different platforms/languages. So unless there's a bug in the specific implementation or library that you are using there shouldn't be any issues.