Are Chinese characters supported by the World-Check API?

I get a 401 Unauthorized error when I enter Chinese characters in my request.

Here's the example from your Postman Collection.

{
"secondaryFields": [],
"entityType": "INDIVIDUAL",
"customFields": [],
"groupId":"{{group-id}}",
"providerTypes": [
"WATCHLIST"
],
"name": "习近平"
}

Best Answer

  • brian.bourgault
    Answer ✓

    Hi @John Williams,

    This is a known issue in the current release of the WC-1 API.

    Chinese characters are supported in the next release (December) of the API.

    Hope this helps,

    Brian

    I successfully tested your example in the next release.

    {
    "secondaryFields": [],
    "entityType": "INDIVIDUAL",
    "customFields": [],
    "groupId":"{{group-id}}",
    "providerTypes": [
    "WATCHLIST"
    ],
    "name": "习近平"
    }

Answers

  • Hi, I just tested this morning, it does not working if the name is Chinese characters. Could i ask when it would be fixed. Thanks

  • Hi @information,

    V1.2 of the API also requires you download the latest Postman collection. There's a minor edit to the Pre-request Script to properly calculate the content string length.

    var contentLength = unescape(encodeURIComponent(content)).length;

    Brian