v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
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.

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.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "transcode",
  "module": "Fileman",
  "result": {
    "data": {
      "charset": "ASCII",
      "content": "hi"
    },
    "status": 1
  }
}