Detect terminal's or file's text encoding
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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