You can call the DescribeCharacterSetName operation to query the character sets that are supported for an ApsaraDB RDS instance.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeCharacterSetName |
The operation that you want to perform. Set the value to DescribeCharacterSetName. |
| Engine | String | Yes | mysql |
The database engine that is run on the instance. Valid values:
|
| RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| CharacterSetNameItems | List | ["gbk","utf8","euckr","ascii"] |
An array that consists of the character sets that are supported for the instance. |
| Engine | String | mysql |
The database engine that is run on the instance. |
| RequestId | String | 1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeCharacterSetName
&Engine=mysql
&RegionId=cn-hangzhou
&<Common request parameters>Sample success responses
XML format
<RequestId>1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC</RequestId>
<CharacterSetNameItems>
<CharacterSetName>["gbk","utf8","euckr","ascii"]</CharacterSetName>
</CharacterSetNameItems>
<Engine>mysql</Engine>JSON format
{
"RequestId": "1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC",
"CharacterSetNameItems": {
"CharacterSetName": "[\"gbk\",\"utf8\",\"euckr\",\"ascii\"]"
},
"Engine": "mysql"
}Error codes
For a list of error codes, visit the API Error Center.