Thanks for the work on creating a bazel wrapper for twirl!
It seems the default encoding used by bazel is US-ASCII, we are moving from SBT to bazel and the sbt plugin uses a default of UTF-8. This change is causing any UTF-8 special characters to be written as "??" in our compiled templates.
I have managed to get the default character set in the JVM to be UTF-8 by setting:
build --action_env JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"
test --test_env JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"
in .bazelrc but this does not seem to be passed on to the twirl compiler.
I was wondering if you had a suggested approach to solving this. I can do a little dive into the code and try to get it running locally but I thought I would check if you already had something in mind for this.
Thanks for the work on creating a bazel wrapper for twirl!
It seems the default encoding used by bazel is US-ASCII, we are moving from SBT to bazel and the sbt plugin uses a default of UTF-8. This change is causing any UTF-8 special characters to be written as "??" in our compiled templates.
I have managed to get the default character set in the JVM to be UTF-8 by setting:
in
.bazelrcbut this does not seem to be passed on to the twirl compiler.I was wondering if you had a suggested approach to solving this. I can do a little dive into the code and try to get it running locally but I thought I would check if you already had something in mind for this.