gulp-iconv
Run ashtuchkin/iconv-lite and translate encoding.
Iconv in gulp.
$ npm install --save-dev gulp-iconv
var gulp = require('gulp');
var iconv = require('gulp-iconv');
gulp.task('default', function () {
return gulp.src('index.html')
.pipe(iconv({
decoding: 'euc_jp',
encoding: 'shift_jis'
}));
});
Type: string
Default: 'utf8'
The encoding of input stream. See Supported encodings.
Type: string
Default: 'utf8'
The encoding of output stream. See Supported encodings.