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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -