From b0a62e4af9fa3145cc3a2b0652d044f26448f30a Mon Sep 17 00:00:00 2001 From: Zhiming Ma Date: Wed, 8 Nov 2023 15:08:00 +0800 Subject: [PATCH] fix(intellij): fix agent IO charset to UTF8. (#723) --- .../src/main/kotlin/com/tabbyml/intellijtabby/agent/Agent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/agent/Agent.kt b/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/agent/Agent.kt index b56e53c..b8a6ec4 100644 --- a/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/agent/Agent.kt +++ b/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/agent/Agent.kt @@ -65,7 +65,7 @@ class Agent : ProcessAdapter() { val node = getNodeBinary() val script = getNodeScript() val options = "--dns-result-order=ipv4first" - val cmd = GeneralCommandLine(node.absolutePath, options, script.absolutePath) + val cmd = GeneralCommandLine(node.absolutePath, options, script.absolutePath).withCharset(Charsets.UTF_8) process = object : KillableProcessHandler(cmd) { override fun readerOptions(): BaseOutputReader.Options { return BaseOutputReader.Options.forMostlySilentProcess()