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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -