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: |
discard | integer Whether to discard any characters that do not transcode correctly.
Example: |
from | |
to | |
transliter | integer Whether to transcode invalid characters to valid characters in the new character set encoding.
Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
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
}
}