阅读背景:

如何解码嵌入在json字符串中的HTML编码字符

来源:互联网 

I've a little question about decoding special characters from a JSon result (in my case, \x27 but it could be any valid html encoded character). If the result doesn't contains any escaped characters, it works well but if not, I get a Unrecognized escape sequence exception. I try to do an HttpUtility.HtmlDecode on the Json string before deserializing using JavascriptSerializer, it doesn't work, the character still in encoded format.I've a little question about decoding special c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: