{
  "slug": "charset-transcode",
  "name": "gizza-ai/charset-transcode",
  "version": "0.1.0",
  "title": "Mojibake Fixer & Charset Transcoder — gizza.ai",
  "description": "Fix mojibake and re-decode legacy charsets (Windows-1252, Latin-1, Shift_JIS, GBK, Big5, KOI8-R) into clean UTF-8 — free, private, in your browser.",
  "tags": [
    "mojibake",
    "charset",
    "encoding",
    "utf-8",
    "windows-1252",
    "iso-8859-1",
    "latin1",
    "shift_jis",
    "transcode",
    "fix garbled text"
  ],
  "category": "encoding",
  "urls": {
    "page": "https://gizza.ai/tools/charset-transcode/",
    "markdown": "https://gizza.ai/tools/charset-transcode/index.md",
    "descriptor": "https://gizza.ai/tools/charset-transcode/tool.json",
    "deep_link_example": "https://gizza.ai/tools/charset-transcode/?text=caf%C3%83%C2%A9%20%20na%C3%83%C2%AFve%20r%C3%83%C2%A9sum%C3%83%C2%A9&from=auto&errors=replace&passes=1"
  },
  "cli": "gizza tool charset-transcode \"cafÃ©  naÃ¯ve rÃ©sumÃ©\"",
  "tool": {
    "description": "Re-decode garbled text ('mojibake') from a legacy charset into clean UTF-8. Leave 'from' as 'auto' (default) to detect the charset, or set it to the charset the text was wrongly decoded as (WHATWG label, e.g. 'windows-1252', 'iso-8859-1'/'latin1', 'shift_jis'/'sjis', 'euc-jp', 'euc-kr', 'gbk', 'big5', 'windows-1251', 'koi8-r'). Use this to fix text where 'é' shows as 'Ã©' or '“' shows as 'â€œ'. Set 'passes'>1 to un-nest double-encoded mojibake. The 'errors' option is 'replace' (default) or 'strict'.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "errors": {
          "default": "replace",
          "description": "How to handle bytes that aren't valid in 'from'.",
          "enum": [
            "replace",
            "strict"
          ],
          "type": "string"
        },
        "from": {
          "default": "auto",
          "description": "Source charset the text was wrongly decoded as, a WHATWG label, or 'auto'.",
          "type": "string"
        },
        "passes": {
          "default": 1,
          "description": "Apply the repair this many times to un-nest double mojibake.",
          "maximum": 8,
          "minimum": 1,
          "type": "integer"
        },
        "text": {
          "description": "The garbled / mis-decoded text to re-decode into clean UTF-8.",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}