Is there a way to write a com.squareup.javapoet.JavaFile
to the file system and make sure the file always is encoded using UTF-8
?
Currently I am using com.squareup.javapoet.JavaFile#writeTo(java.io.File dir)
but this uses the default encoding of the current virtual machine.