Skip to content

[Bug]: ShellCommandTool支持传入字符集,解决Windows下读取stdout/stderr乱码问题 #930

@liwenshen2000

Description

@liwenshen2000

AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.

Describe the bug
ShellCommandTool默认使用UTF-8读取stdout/stderr,windows下会导致读取到的中文乱码。

new InputStreamReader(inputStream, StandardCharsets.UTF_8))) {

To Reproduce (TODO)
Steps to reproduce the behavior:

  1. You code
  2. How to execute
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Error messages
Detailed error messages.

Environment (please complete the following information):

  • AgentScope-Java Version: 1.0.10
  • Java Version: 25
  • OS: windows

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions