Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Validating UTF8 encoding ...
November 4, 2005, 1:11 pm
rate this thread
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?