halo-dev / plugin-starter

Halo 2.0 插件开发快速开始模板
GNU General Public License v3.0
43 stars 63 forks source link

执行./gradlew build后编码错误 #19

Closed yangzidemuou closed 11 months ago

yangzidemuou commented 12 months ago

执行./gradlew build后编码错误
Task :compileJava F:\code\halo-GPT\src\main\java\run\halo\starter\StarterPlugin.java:24: 错误: 编码 GBK 的不可映射字符 (0x81) System.out.println("鎻掍欢鍚姩鎴愬姛锛?"); ^ F:\code\halo-GPT\src\main\java\run\halo\starter\StarterPlugin.java:29: 错误: 编码 GBK 的不可映射字符 (0x81) System.out.println("鎻掍欢鍋滄锛?");

在build.gradle中添加 tasks.withType(JavaCompile).configureEach { options.encoding = "UTF-8" }

JohnNiang commented 11 months ago

请参考 https://github.com/halo-dev/halo/pull/4844

Hi @yangzidemuou ,如果有兴趣的话,非常欢迎帮忙修复一下这个问题。

JohnNiang commented 11 months ago

/good-first-issue /kind bug

f2c-ci-robot[bot] commented 11 months ago

@JohnNiang: This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to [this](https://github.com/halo-dev/plugin-starter/issues/19): >/good-first-issue >/kind bug Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.