zh-encoding-fix

Detect and repair mojibake in Markdown, JSON, and text files with UTF-8 enforcement.

3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Dalomeve/bot-output --skill zh-encoding-fix
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: zh-encoding-fix
Source: https://github.com/Dalomeve/bot-output/tree/main/skills/zh-encoding-fix
Command: npx skills add https://github.com/Dalomeve/bot-output --skill zh-encoding-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Detects and repairs mojibake in Markdown, JSON, and text files to restore readable content.

Core Features & Use Cases

  • Deterministic mojibake repair across Markdown, JSON, and text files
  • Backup before any rewrite and UTF-8 safe write enforcement
  • Use case: clean up garbled Chinese text after edits and transfers

Quick Start

Run a deterministic mojibake repair pass across all text files and commit UTF-8-safe rewrites.

Frequently Asked Questions about zh-encoding-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix mojibake in Markdown and JSON files after editing or transferring them?▼

To fix mojibake in Markdown and JSON files, you can run a deterministic repair pipeline that detects garbled text and rewrites files with enforced UTF-8 encoding, restoring readable content across codebases and documentation stores.

Why does garbled Chinese text appear in my text files after a backup or transfer?▼

Garbled Chinese text, or mojibake, appears after backups or transfers due to character encoding mismatches. Enforcing UTF-8 safety and running a deterministic recovery pass restores the original readable characters.

What is the best way to repair mojibake across a codebase without losing original data?▼

The best way to repair mojibake without losing data is to use a tool that automatically creates a backup before rewriting, validating UTF-8 integrity while preserving originals for manual fallback.

Can I safely enforce UTF-8 encoding on text files and still revert the changes?▼

Yes, you can safely enforce UTF-8 encoding because the repair process auto-backs up all originals before rewriting, ensuring you can manually revert to the pre-repair files if needed.

Does deterministic mojibake repair work for both JSON and Markdown formats?▼

Yes, deterministic mojibake repair works across Markdown, JSON, and general text files, detecting and repairing encoding errors to restore readable content with validated UTF-8 integrity.