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 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: "Jersey City, NJ" should be.
string decoded = System.Web.HttpUtility.UrlDecode ( "Jersey + City% 2C + New + Jersey");
Comments
Post a Comment