fix(intellij): fix agent IO charset to UTF8. (#723)

refactor-extract-code
Zhiming Ma 2023-11-08 15:08:00 +08:00 committed by GitHub
parent 3af2ad7c60
commit b0a62e4af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()