This function converts a buffer from one encoding language to another.
Important:
When you disable the File Storage role, the system disables this function.
content required | string The file's contents. Example: content=hi |
discard_illegal | integer Whether to discard any characters that do not transcode correctly.
Example: discard_illegal=1 |
from_charset | |
to_charset | |
transliterate | integer Whether to transcode invalid characters to valid characters in the new character set encoding.
Example: transliterate=0 |
uapi --output=jsonpretty \ --user=username \ Fileman \ transcode \ content='hi'
{- "apiversion": 3,
- "func": "transcode",
- "module": "Fileman",
- "result": {
- "data": {
- "charset": "ASCII",
- "content": "hi"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}