Validating UTF8 encoding ...

Giganews Newsgroups
Subject: Validating UTF8 encoding ...
Posted by:  Andy (andyliste…
Date: 4 Nov 2005

I am consuming an XML feed, which continually contains invalid uft8
encoded characters.  Time and time again the publisher of the feed has
*fixed* the issue, but still they slip through.  This has the
unfortunate side effect of causing an exception in my code (C# using
the XmlDocument class).  What I would like to do is validate the feed I
receive before processing it.  Can anyone tell me how to iterate
through each character validating that it is utf8 encoded?

Thanks Andy