Gradle separate file encoding

HI Everyone, I have an interesting issue , I am working on configuration an old project. And trying to configurate gradle-kotlin build for it. For some reason global project encoding is windows-1252. And also I have one java file , which is working with characters, this file has encoding UTF-8.
When I am trying to compile I had an error “error: unmappable character (0x8F) for encoding windows-1252
value = value.replaceAll(“Ï”, “�?”);”
Is there any way to set project encoding - windows-1252
and separetly for current file - UTF-8
with gradle-kotlin ?