c# - Remove special characters and replace the same with exact values (e.g. "Jersey+City%2c+New+Jersey" to "Jersey City, New Jersey" ) -


I am am reached wcf rest service and receive feedback as Jason.

In response, we have to get the name

The "Jersey City, NJ" should be.

so that the regex or method can be used so that special characters should be identified and replaced with a specific character.

As Robin commented that system. Web. You can use static method of HTTP quality class.

Like:

  string decoded = System.Web.HttpUtility.UrlDecode ( "Jersey + City% 2C + New + Jersey");    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -