str_replace_editor doesn't preserve the encoding properly for non-ASCII characters.
未關閉
area:tools
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
Run into a issue where "ä" was not encoded properly after edit and shows up as triangle with question mark . Copilot itself reported this to be caused by " str_replace_editor doesn't preserve
the encoding properly for non-ASCII characters."
### Affected version
_No response_
### Steps to reproduce the behavior
1. Ask Copilot to modify C# files with comments if Finnish for example "// Täysi"
2. Copilot does changes which include the comment line
3. "ä" character is corrupted
### Expected behavior
No character corruption
### Additional context
```pwsh
copilot ---version
0.0.341
Commit: 5725358
```
貢獻指南
評估
這個 Issue 還沒有評估資料。