如何在PowerShell中正确使用UTF-8显示Gradle构建信息
目前,我更改了PowerShell以使用代码第65001页(又名UTF-8)。
我已经在Stackoverflow上研究了一些问题,并更改了我的项目 gradle.properties 并添加以下属性。
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
但是,当启动PowerShell并执行Gradle构建时。然后执行git commit/push,其中包括a kotlinter git git Hook 。
独立构建任务还可以,但是调用Gradle任务并显示诸如图像之类的控制台信息的Git Hook命令。
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.
The standalone build task is ok, but the Git hook command that calls Gradle tasks and shows console info like the image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论