Skip to content

在 Window 环境下 AI 使用 PowerShell 修改文件添加中文内容会有乱码出现 #30205

@jianbinJava

Description

@jianbinJava

Description

在 Window 环境下 AI 使用 PowerShell 修改文件添加中文内容会有乱码出现, 原因是 Windows下的 PowerShell 默认编码为 GBK 导致。每次都要提醒,挺麻烦的, 望紧急修复。

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. 输入提示词,叫修改功能,
  2. AI 自动修改完代码后, 把原来的文内容替换后,就变成乱码出现了。

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions