json - DataContractJsonSerializer not deserializing html entities -
i receiving data web service, , of strings have html entities in them, example:
{"prop": "htmlentity - é"}
the é
not being parsed é.
my question twofold:
- is supposed happen?
looked through json spec best could, couldn't find reference html entities. - what right way
datacontractjsonserializer
?, if there right way?
you can call httputility.htmldecode on strings contain html entities.
this not job of datacontractjsonserializer, json spec requires quotation mark, reverse solidus, , control characters escaped.
Comments
Post a Comment