如何在PowerShell中正确使用UTF-8显示Gradle构建信息

发布于 2025-02-10 02:29:32 字数 631 浏览 0 评论 0原文

目前,我更改了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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文