Sunday 15 March 2015

utf 8 - Batch UTF-8 Validation Tool? -


Is any app / service / method known to validate a group of XML files for UTF-8 Can I use it for?

Actually I have an XML file that can be UTF-8 and some of them contain some fake characters, so they do not render correctly in the content viewer.

I know that I can see one at a time with the methods found in this answer:

... but how do thousands of XML files at one time?

Why can not you take one of the solutions with the linked question and apply them in your situation Can you? It seems that it will be easy to iterate over all those files you want to see, run iconv -f utf8 on them and emit a list of files where they fail.

Update
Since you have not specified a situation or environment under which you need to test this, it is difficult to provide solid advice. Methods of testing what you want, have been offered, so it is a matter of knowing that what you have available to implement the solution.

Considering a basic * nivial envornment, this simple shell script provides basic checks, alerting specific filename globbing issues.

  #. / Bin / sh f * * .xml; If do Iconv -f utf8 $ f & gt; / Dev / null 2 ​​& gt; and 1; Then, when you provide more information about your specific needs, make $ FFE  

, however, it is difficult to know whether any answer of the people is really relevant.


No comments:

Post a Comment