api / org.gradle.api.tasks.compile / CompileOptions / setEncoding

setEncoding

open fun setEncoding(encoding: String): Unit

Sets the character encoding to be used when reading source files. Defaults to null, in which case the platform default encoding will be used.