Description
This function retrieves a user's character set encoding.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Locale::get_attributes
— This function retrieves information about the user's current locale setting.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
encoding |
integer |
The authenticated user's character set encoding.
|
Any cPanel-supportedcharacter encoding. |
utf-8 |
reason |
string |
A reason for failure. Note: This function only returns areason value if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded.
|
|
1 |