Simple tool that uses chardet to fail a build if confidence about the encoding of a file is too low
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chardet
.gitignore
README
ant-example.xml
encoding-detector.py

README

ENCODING DETECTOR

Detect encodings recursively over files in your project and kill
those nasty non-UTF files before they rob you of tiresome hours
that could be spent drinking beer instead!

This code was used once on a project far, far away. I haven't tried
to make it too generic or super helpful, but hopefully should be
enough to get things going. Contributions are most welcome and, if
someone wants to comment on my dated Python skills, feel free to
do so though the medium of patches ;)

LICENSE (LGPL)

This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA.