How to show Gradle build info using UTF-8 correctly in Powershell

Viewed 49

Currently I changed my PowerShell to use code page 65001(aka UTF-8).

I have researched some questions on StackOverFlow, and changed my project gradle.properties and add the following properties.

org.gradle.jvmargs='-Dfile.encoding=UTF-8'

But when starting Powershell, and execute Gradle build. And then execute Git commit/push, it includes a Kotlinter Git hook.

enter image description here

The standalone build task is ok, but the Git hook command that calls Gradle tasks and shows console info like the image.

0 Answers
Related