microsoft / microsoft/json-document-transforms

Synchronize encoding

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
115
Forks
39
PR merge metrics
No merged PRs in 30d

Description

JsonTransformation.Apply should detect the encoding of the input (either stream or file) and return a stream with the same encoding.

Note that StreamReader.CurrentEncoding does not seem to work properly (see this). I have confirmed this problem through some testing.

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

Start at JsonTransformation.Apply and trace how it reads streams and files before producing the result stream. Research reliable input-encoding detection rather than relying on StreamReader.CurrentEncoding, then verify that the returned stream preserves the input encoding for both supported input forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.