{"uid":"cap_az0MJKP6ISBaOw5kKDcui","slug":"text-mojibake-repair-e86f40d6","name":"Text Mojibake Repair","description":"Repair text corrupted by the classic UTF-8-bytes-read-as-Latin-1 mistake (curly quotes, em dashes, common emoji, stray BOM appearing as garbled multi-character sequences). Pattern-matches known corruption sequences; this is a heuristic repair, not full charset detection, and leaves correctly-encoded text unchanged.","url":"https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_mojibake_repair/execute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":48000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rK62QrSCIS8ociSckOoH3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs UTF-8-to-Latin-1 mojibake corruption in text by pattern-matching known garbled character sequences back to their intended Unicode characters","exampleAgentPrompt":"This customer review has garbled characters everywhere — curly quotes are showing as â€œ and â€™ and em dashes look like â€","exampleUseCases":[{"title":"Fixing garbled product reviews","prompt":"Our product review database has a ton of entries where curly quotes appear as â€œ and â€™ and em dashes show up as â€"},{"title":"Cleaning mojibake in imported CRM notes","prompt":"We imported customer notes from an old system and all the special characters are broken — things like â€˜ instead of apostrophes and â€¦ instead of ellipses. Can you run this note through the mojibake repair to clean it up?"},{"title":"Repairing encoded email content","prompt":"This email body we received has obviously corrupted encoding — the em dashes and smart quotes are all garbled multi-character sequences. Fix the encoding so it reads correctly."}],"resultDescription":"Returns the input text with known UTF-8-read-as-Latin-1 corruption sequences replaced by their correct Unicode characters. Correctly-encoded text is returned unchanged. The repair is heuristic and pattern-based, not a full charset detection solution.","failureModes":["Text that is not mojibake-corrupted is returned unchanged — no false positives but no detection confirmation either","Uncommon or non-standard corruption patterns not in the heuristic list will not be repaired","Text exceeding 48,000 characters will be rejected with a validation error","Non-UTF-8/Latin-1 encoding errors (e.g. Windows-1252 specific sequences) may not be fully addressed","Payment failure or insufficient USDC balance will prevent the call from completing"],"whenToPreferThis":"Use this endpoint when you have text that was clearly corrupted by the classic UTF-8-bytes-interpreted-as-Latin-1 mistake, showing symptoms like â€œ for curly quotes, â€","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:33:58.529Z","isFirstParty":false,"canonicalSlug":"text-mojibake-repair-e86f40d6"}