Skip to content

When files encoded in Windows 1252 are edited, Copilot changes the encoding to UTF-8. #3604

@mapsouza

Description

@mapsouza

Describe the bug

Copilot doesn't respect the original file encoding; it makes edits and changes the file format to UTF-8. I haven't found a prompt to prevent this from happening.

What it does, after saving the wrong file, is try to revert the encoding using scripts.

Affected version

GitHub Copilot CLI 1.0.56.

Steps to reproduce the behavior

  1. Create a Windows1252 file and save in repo;
  2. Ask the copilot to make changes.

Expected behavior

Copilot needs to respect file encoding

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions