Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yangzidemuou opened this issue Dec 5, 2023 · 3 comments
Closed

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

yangzidemuou opened this issue Dec 5, 2023 · 3 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.

Comments

@yangzidemuou
Copy link
Contributor

执行./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
Copy link
Member

JohnNiang commented Dec 12, 2023

请参考 halo-dev/halo#4844

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

@JohnNiang
Copy link
Member

/good-first-issue
/kind bug

Copy link

f2c-ci-robot bot commented Dec 12, 2023

@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:

/good-first-issue
/kind bug

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@f2c-ci-robot f2c-ci-robot bot added kind/bug Categorizes issue or PR as related to a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Dec 12, 2023
f2c-ci-robot bot pushed a commit that referenced this issue Dec 14, 2023
解决windows下构建项目出现的编码错误问题 #19 

```release-note
None
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants