Closed yangzidemuou closed 11 months ago
请参考 https://github.com/halo-dev/halo/pull/4844。
Hi @yangzidemuou ,如果有兴趣的话,非常欢迎帮忙修复一下这个问题。
/good-first-issue /kind bug
@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.
执行./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" }