Fileman
Manage Files
Update buffer encoding
This function converts a buffer from one encoding language to another.
Important:
When you disable the File Storage role, the system disables this function.
get/Fileman/transcode
Query parameters
contentstring required
Example:hi
The file's contents.
discard_illegal0 | 1
Example:1
Whether to discard any characters that do not transcode correctly.
- 1 - Discard invalid characters.
- 0 - Transcode invalid characters in the default character set encoding.
from_charsetstring
Example:UTF-8
The file's current character set encoding.
to_charsetstring
Example:ASCII
The character set encoding in which to encode the file.
transliterate0 | 1
Whether to transcode invalid characters to valid characters in the new character set encoding.
- 1 - Transcode invalid characters in the new character set encoding.
- 0 - Return an error message.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "transcode",
"module": "Fileman",
"result": {
"data": {
"charset": "ASCII",
"content": "hi"
},
"status": 1
}
}