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

getEncoding

@Optional @Input open fun getEncoding(): String

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