Check character encoding of files using iconv.
Check character encoding of files using your local installation of
This plugin may or may not work under Windows (with Cygwin) or Mac OS, feedback is appreciated.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-encoding --save-dev
In your project's Gruntfile, add a section named
encoding to the data object passed into
gruntinitConfigencoding:options:// Task-specific options go here.your_target:// Target-specific file lists and/or options go here.
The encoding against which the files will be validated. Keep in mind that this value must be understood by iconv and is case sensitive. To get a list of all available encodings use
If provided, use this iconv executable rather than whatever
which iconv returns.
gruntinitConfigencoding:options:encoding: 'UTF8'files:src: 'src/**/*'
0.3.0 (2015/01/19) Made encoding support detection more robust and updated dependencies
0.2.0 (2014/12/28) Fix issues with Windows line feeds and iconv version detection
0.1.0 (2013/09/13) Initial release