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 ;)
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.