Fix character encoding in files

zh-encoding-fixskillsetup L22
Dalomeve/bot-output
What it does

Detect and repair mojibake in markdown/json/text files

Best for

Recovering garbled Chinese text after write/edit without losing original in backup

Inputs
  • · corrupted text files (.md, .txt, .json)
Outputs
  • · repaired file
  • · backup with timestamp
Requires
  • · PowerShell scripts/repair-mojibake.ps1
Preconditions

File contains mojibake markers or CJK encoding corruption

Failure modes

Low confidence recovery leaves corruption, accidental truncation, binary file contamination

Trust signals
  • · CP936 → UTF-8 byte recovery
  • · Readability scoring for candidate selection