eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
382 stars 113 forks source link

Javascript source encoding for JSHintTask #161

Open svedin opened 6 years ago

svedin commented 6 years ago

It seems that javascript files are always read with the system encoding. It would be nice if i where able to specify the encoding so my build doesn't depend on the locale of the system it's running on.

As far as i can tell the file is read in jshint-rhino-2.4.3.js on row 13723 var input = readFile(name); where readFile can take a second argument to specify a character coding.