Skip to content

docs: preserve UTF-8 in Windows export example - #6

Merged
Eldorado-ling merged 1 commit into
mainfrom
docs/native-export-bytes
Nov 5, 2026
Merged

Eldorado-ling merged 1 commit into
mainfrom
docs/native-export-bytes

Conversation

@Eldorado-ling

Copy link
Copy Markdown
Owner

The Windows export example can change UTF-8 text when PowerShell decodes native output with another console encoding. Redirect the JSON bytes through cmd /d /c, use a new filename, and keep a remote server option inside the quoted command.

Verified small and 6 MB synthetic exports in Windows PowerShell 5.1 and PowerShell 7.6 with a GB2312 console. Direct redirection matched the native file output byte-for-byte; the previous text pipeline produced valid JSON with changed Unicode. The export endpoint used invented local data. The separately reported native pipe truncation was not reproduced in this Windows check.

@Eldorado-ling
Eldorado-ling merged commit 3320850 into main Nov 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant