调用DescribeCharacterSetName接口查看PolarDB MySQL引擎数据库支持的字符集列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeCharacterSetName

系统规定参数。取值:DescribeCharacterSetName

RegionId String cn-hangzhou

地域ID。

说明 您可以通过DescribeRegions接口查看可用地域。
DBClusterId String pc-****************

集群ID。

说明 当前仅支持查看PolarDB MySQL引擎集群数据库支持的字符集列表。若输入PolarDB PostgreSQL引擎集群或PolarDB O引擎集群的集群ID,CharacterSetNameItems会返回空值。

返回数据

名称 类型 示例值 描述
RequestId String 34458CD3-33E0-4624-BFEF-840C15******

请求ID。

CharacterSetNameItems Array of String { "CharacterSetName": [ "utf8mb4", "utf8", "utf32", "utf16le", "utf16", "ujis", "ucs2", "tis620", "swe7", "sjis", "macroman", "macce", "latin7", "latin5", "latin2", "latin1", "koi8u", "koi8r", "keybcs2", "hp8", "hebrew", "greek", "geostd8", "gbk", "gb2312", "euckr", "eucjpms", "dec8", "cp932", "cp866", "cp852", "cp850", "cp1257", "cp1256", "cp1251", "cp1250", "binary", "big5", "ascii", "armscii8" ] }

支持的字符集列表。

Engine String POLARDB

集群引擎。

示例

请求示例

http(s)://polardb.aliyuncs.com/?Action=DescribeCharacterSetName
&RegionId=cn-hangzhou
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeCharacterSetNameResponse>
    <RequestId>97942193-2BB9-1FCF-8477-D4632BD166A7</RequestId>
    <CharacterSetNameItems>
        <CharacterSetName>utf8mb4</CharacterSetName>
        <CharacterSetName>utf8</CharacterSetName>
        <CharacterSetName>utf32</CharacterSetName>
        <CharacterSetName>utf16le</CharacterSetName>
        <CharacterSetName>utf16</CharacterSetName>
        <CharacterSetName>ujis</CharacterSetName>
        <CharacterSetName>ucs2</CharacterSetName>
        <CharacterSetName>tis620</CharacterSetName>
        <CharacterSetName>swe7</CharacterSetName>
        <CharacterSetName>sjis</CharacterSetName>
        <CharacterSetName>macroman</CharacterSetName>
        <CharacterSetName>macce</CharacterSetName>
        <CharacterSetName>latin7</CharacterSetName>
        <CharacterSetName>latin5</CharacterSetName>
        <CharacterSetName>latin2</CharacterSetName>
        <CharacterSetName>latin1</CharacterSetName>
        <CharacterSetName>koi8u</CharacterSetName>
        <CharacterSetName>koi8r</CharacterSetName>
        <CharacterSetName>keybcs2</CharacterSetName>
        <CharacterSetName>hp8</CharacterSetName>
        <CharacterSetName>hebrew</CharacterSetName>
        <CharacterSetName>greek</CharacterSetName>
        <CharacterSetName>geostd8</CharacterSetName>
        <CharacterSetName>gbk</CharacterSetName>
        <CharacterSetName>gb2312</CharacterSetName>
        <CharacterSetName>euckr</CharacterSetName>
        <CharacterSetName>eucjpms</CharacterSetName>
        <CharacterSetName>dec8</CharacterSetName>
        <CharacterSetName>cp932</CharacterSetName>
        <CharacterSetName>cp866</CharacterSetName>
        <CharacterSetName>cp852</CharacterSetName>
        <CharacterSetName>cp850</CharacterSetName>
        <CharacterSetName>cp1257</CharacterSetName>
        <CharacterSetName>cp1256</CharacterSetName>
        <CharacterSetName>cp1251</CharacterSetName>
        <CharacterSetName>cp1250</CharacterSetName>
        <CharacterSetName>binary</CharacterSetName>
        <CharacterSetName>big5</CharacterSetName>
        <CharacterSetName>ascii</CharacterSetName>
        <CharacterSetName>armscii8</CharacterSetName>
    </CharacterSetNameItems>
    <Engine>POLARDB</Engine>
</DescribeCharacterSetNameResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "97942193-2BB9-1FCF-8477-D4632BD166A7",
  "CharacterSetNameItems" : {
    "CharacterSetName" : [ "utf8mb4", "utf8", "utf32", "utf16le", "utf16", "ujis", "ucs2", "tis620", "swe7", "sjis", "macroman", "macce", "latin7", "latin5", "latin2", "latin1", "koi8u", "koi8r", "keybcs2", "hp8", "hebrew", "greek", "geostd8", "gbk", "gb2312", "euckr", "eucjpms", "dec8", "cp932", "cp866", "cp852", "cp850", "cp1257", "cp1256", "cp1251", "cp1250", "binary", "big5", "ascii", "armscii8" ]
  },
  "Engine" : "POLARDB"
}

错误码

访问错误中心查看更多错误码。