# Mojibake Repair — Broken Text Encoding Fixer

> Mojibake Repair — Broken Text Encoding Fixer is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Repairs mojibake (garbled text from misread encodings like UTF-8 read as Windows-1252) and returns the original text exactly, character for character.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/mojibake-repair/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mojibake-repair-broken-text-encoding-fixer-68862e07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HhzcHrv2r3TPkQxDxupSu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mojibake-repair-broken-text-encoding-fixer-68862e07
```

Example prompt: Can you fix this garbled text that has mojibake like 'Ð¿Ñ€Ð¸Ð²ÐµÑ‚' or 'CafÃ© du MondÃ©' — it looks like UTF-8 was read as Windows-1252 and I need the original characters back exactly.

## When to prefer this

Choose this endpoint when you have text that was misread under a wrong encoding (UTF-8 as Windows-1252, Latin-1, or Windows-1251) and need exact character-for-character restoration. Ideal for database migrations, CMS imports, email content with broken accents, Cyrillic or Eastern European language content, or any text showing classic mojibake patterns like Ã, â€, Ð symbols. Prefer this over generic text-cleaning tools when encoding provenance is the specific problem.

## Known failure modes

- Text with genuinely lost bytes (truncated UTF-8 sequences) cannot be fully restored — partial repair returned
- Mixed encoding text where two encodings are interleaved may have ambiguous sections that cannot be deterministically resolved
- Text that is actually correct (not mojibake) is returned unchanged — no false positives
- Input that has been double-encoded through more than two levels may not fully recover
- Very short strings with no unique encoding fingerprint may be misidentified

## How this service works

Mojibake Repair: Undo Broken Encoding Exactly — Repairs mojibake, text whose accents, Cyrillic letters, quotes, dashes or emoji turned into strings such as Ã¨, Ã¼, â€œ, Ð¿Ñ€ or Р—Рґ because UTF-8 was read as Windows-1252, Latin-1 or Windows-1251, once or twice. Gives back the original text exactly, character for character, by undoing the wrong reading byte by byte, and leaves text that is already correct untouched. When the damage is mixed with good text, mixes two encodings, or lost bytes, so …

## Output

Returns the original, correctly decoded text with all characters restored to their intended Unicode form. Leaves any already-correct text untouched. Where damage is ambiguous or bytes are lost, reports which parts could not be fully repaired.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mojibake-repair-broken-text-encoding-fixer-68862e07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
