Validating UTF8 encoding ...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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

Re: Validating UTF8 encoding ...

On 4 Nov 2005, Andy wrote:

Quoted text here. Click to load it

The innocents abroad.

Quoted text here. Click to load it

<news:comp.text.xml> exists. For you, that's

Netscape 3.04 does everything I need, and it's utterly reliable.
Why should I switch?         Peter T. Daniels in <news:sci.lang>

Site Timeline