Skip to content

Commit 083c3e3

Browse files
committed
utf-8 support for javadoc
1 parent 2178b99 commit 083c3e3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ tasks.withType<JavaExec> {
3434
jvmArgs = listOf("-Dfile.encoding=UTF-8", "-Dconsole.encoding=UTF-8")
3535
}
3636

37+
tasks.withType<Javadoc> {
38+
options.encoding = "UTF-8"
39+
}
40+
3741
tasks.compileJava {
3842
options.encoding = "UTF-8"
3943
}

src/main/java/examples/ExampleChatGPT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args) {
3535
System.setProperty("console.encoding", "UTF-8");
3636

3737
//The first message that we want to send
38-
String message1 = "こんにちは";
38+
String message1 = "Hello ChatGPT!";
3939
//The second message that we want to send
4040
String message2 = "What was the first thing I said?";
4141

0 commit comments

Comments
 (0)