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:

  1. is supposed happen?
    looked through json spec best could, couldn't find reference html entities.
  2. 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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -