charset_transcode
Transcode text between character encodings by specifying source and target charsets, with configurable error handling and hex output for invalid byte sequences.
Instructions
Convert text between character encodings (e.g. latin-1/cp1252 <-> utf-8).
The input is encoded under from_charset to recover its raw bytes, which are
then decoded under to_charset. If the bytes aren't valid to_charset text
they're returned as bare hex with output_format='hex' (otherwise 'text').
errors selects the codec error handler (strict|replace|ignore|…).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| from_charset | Yes | ||
| to_charset | Yes | ||
| errors | No | strict |