Skip to content

[BUG] In the inline terminal, the output of any command exhibits character corruption. #10709

@IM-HCC

Description

@IM-HCC

Problem (one or two sentences)

In the inline terminal, the output of any command exhibits character corruption. I have identified the cause of the problem: my local character encoding is GBK, but the decoding method used by RooCode is UTF-8, which is responsible for the occurrence of character corruption.

Under the section "Custom Instructions for All Modes" in roocode, it is specified that character corruption will no longer occur after executing the command "chcp 65001".

The above information was generated by a translation software. If there is anything unclear, please feel free to let me know. My intention is truly to resolve this issue. Finally, I would like to express my gratitude to all the developers who have contributed to this project.

Context (who is affected and when)

Image Image

Reproduction steps

Adjust the local Windows system encoding to GBK.
In rocode, enable the Agent to use the chcp command to avoid character corruption.

Expected result

chcp �����ҳ: 936

Actual result

Active code page:936

Variations tried (optional)

No response

App Version

3.40.0

API Provider (optional)

None

Model Used (optional)

N/A

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions