71trust / 100
Text Mojibake Repair Execute
by tradepilotusa.com in Other
x402 APIPassing, checked 4 h ago
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.
POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_mojibake_repair/execute
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 1.1 s typical, 1.3 s slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_mojibake_repair/execute' \
-H 'content-type: application/json' \
--data-raw '{"text":"It\u00e2\u20ac\u2122s ready \u00e2\u20ac\u201d see you soon"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Ftext_mojibake_repair%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_mojibake_repair/execute", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"text\":\"It\u00e2\u20ac\u2122s ready \u00e2\u20ac\u201d see you soon\"}",
});
console.log(await res.json());Example input
{
"text": "It’s ready — see you soon"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 1.0 s | $0.01 |
| 8 h ago | Passed | 402 | 1.2 s | $0.01 |
| 12 h ago | Passed | 402 | 1.2 s | $0.01 |
| 15 h ago | Passed | 402 | 1.1 s | $0.01 |
| 19 h ago | Passed | 402 | 1.3 s | $0.01 |
| 23 h ago | Passed | 402 | 963 ms | $0.01 |
| 27 h ago | Passed | 402 | 1.1 s | $0.01 |
| 30 h ago | Passed | 402 | 1.1 s | $0.01 |
| 33 h ago | Passed | 402 | 1.0 s | $0.01 |
| 37 h ago | Passed | 402 | 1.1 s | $0.01 |
| 40 h ago | Passed | 402 | 992 ms | $0.01 |
| 44 h ago | Passed | 402 | 1.0 s | $0.01 |
| 2 days ago | Passed | 402 | 966 ms | $0.01 |
| 2 days ago | Passed | 402 | 1.2 s | $0.01 |
| 2 days ago | Passed | 402 | 2.8 s | $0.01 |