I have to write a program that will fetch the encoding information from XML files:

<?xml version="1.0" encoding="UTF-8"?>

and verify that all encoding is set to UTF-8, my early trials using SAX has not worked, I thought it was a preprocessing instruction but I did not get the callback for my test files.  Is there an easy way to fetch and possibly update the encoding value?

Thanks,

Rob

Reply via email to