I have several source files in a Visual Studio 2013 application project that I am processing with gulp version 3.8.11. These files are Unicode (UTF-8 with signature) - Codepage 65001 text files Unicode (UTF-8 with signature) - Codepage 65001 . After processing, they look like text files encoded in Windows 1252.
For example, with the following UTF-8 encoded src/hello.html :
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hello</title> </head> <body> <h1>Hello, my name is Jesús López</h1> </body> </html>
Here's what it looks like in a browser:

Using the following gulpfile.js :
var gulp = require('gulp'); gulp.task('build', function () { gulp.src('src/hello.html') .pipe(gulp.dest('dist')); });
After executing gulp build on the command line, it looks in the browser:

How can I solve this encoding problem? Please, help.
source share