microsoft / microsoft/edit

Detect terminal's or file's text encoding

Open
#449 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-task
Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

Beside UTF-8, I also use code page ISO-8859-1 or MS-ANSI aka CP1252, primarily on Windows.

Is there a way for MS EDIT to detect character encoding directly from the command line, similar to the commands `locale -c charmap` or `file ansi.txt`?

Another way could be to set the default encoding via an environment variable or command option.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or implementation entry points. Start by reproducing the encoding checks with `locale -c charmap` and `file ansi.txt`, then clarify how command-line detection or an environment-variable/option default should behave for ISO-8859-1 and CP1252 on Windows; done means those inputs are detected or selected reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.