PDA

View Full Version : SgmlReader - SystemOutOfArgumentException w/ html that contains 'special' entity



joergbattermann
09-21-2010, 02:43 PM
Hello there,

I have some 'bad' behavior with SGMLReader not being able to parse a html description that contains special entities (more specifically in this case it is "�").. because it throws the following exception/stacktrace:

at System.Char.ConvertFromUtf32(Int32 utf32)
at Sgml.Entity.ExpandCharEntity()
at Sgml.SgmlReader.ExpandEntity(StringBuilder sb, Char terminator)
at Sgml.SgmlReader.ParseText(Char ch, Boolean newtext)
at Sgml.SgmlReader.ParseMarkup()
at Sgml.SgmlReader.Read()

Does SgmlReader not support 'all' (x)html entities?

Cheers,
-J