{"uid":"cap_V-dZhFWWzWrNaX8KLRPZV","slug":"character-encoding-transcoder-5fbb0768","name":"Character Encoding Transcoder","description":"Decode a base64 byte buffer from one character set and re-encode it into another (utf-8, utf-16le, utf-16be, latin1, ascii). Characters that the target set cannot represent, or bytes invalid for the source set, are clean 400s.","url":"https://encoding.openverbs.com/v1/transcode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["bytes","from","to"],"properties":{"to":{"enum":["utf-8","utf-16le","utf-16be","latin1","ascii","utf8","utf16le","utf16be","iso-8859-1","windows-1252","us-ascii"],"type":"string","description":"Target character set."},"from":{"enum":["utf-8","utf-16le","utf-16be","latin1","ascii","utf8","utf16le","utf16be","iso-8859-1","windows-1252","us-ascii"],"type":"string","description":"Source character set."},"bytes":{"type":"string","description":"Base64-encoded source bytes."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MMFWzuT0CNO3VKfQi7G-U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts base64-encoded bytes from one character encoding to another (e.g. Latin-1 to UTF-8, Windows-1252 to ASCII)","exampleAgentPrompt":"I have some base64-encoded bytes in Latin-1 encoding — can you transcode them to UTF-8? The bytes are 'SGVsbG8gV29ybGQ='.","exampleUseCases":[{"title":"Fix legacy Windows-1252 encoded data","prompt":"I have base64-encoded bytes from an old Windows system encoded in windows-1252, and I need them converted to utf-8 so I can display them properly. The bytes are 'SGVsbG8gV29ybGQ='."},{"title":"Normalize ISO-8859-1 text to Unicode","prompt":"Can you convert these base64-encoded iso-8859-1 bytes — 'SGVsbG8gV29ybGQ=' — into utf-8? I need to normalize them before storing in my database."},{"title":"Transcode ASCII bytes to UTF-16LE","prompt":"I need to re-encode these base64 bytes from ascii to utf-16le — the bytes are 'SGVsbG8gV29ybGQ='. Can you transcode them for me?"}],"resultDescription":"The endpoint returns the re-encoded bytes in the target character set, allowing the agent to use the output in any downstream text processing or storage task that requires a specific character encoding.","failureModes":["Invalid or non-base64 input bytes returns a validation error","Unsupported source or target encoding enum value returns a schema error","Bytes that are not valid in the specified source encoding may cause a conversion error","Empty bytes field may return an error or empty result","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to programmatically convert raw bytes between specific character encodings — especially for legacy encodings like Latin-1, Windows-1252, ISO-8859-1, or ASCII — and the source bytes are available as base64. It is ideal for fixing encoding mismatches in data pipelines, normalizing text from legacy systems to UTF-8, or preparing bytes for systems that require a specific encoding. Prefer this over client-side libraries when operating in an agent context without direct code execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:25.656Z","isFirstParty":false}