World check one api

I used Java to call the v2/cases/screeningRequest interface of the world check one api. When my payload contains Chinese or Japanese characters, it will return 401, but there is no problem with pure English and numbers.

My signature method uses generateAuthHeaders downloaded from the official website.I don't know if there is something wrong with the code below. I hope you can help me solve it. Thank you!

1722506761758.png

image

Best Answer

Answers

  • Hi @nike.wang,

    Thanks for reaching out!

    You don’t have any issues with English names, but you get a 401 error when sending requests with Japanese or Chinese characters (e.g., 乔治布什). To fix this, you need to UTF-8 encode your payload when sending names with special characters.

    Thanks

    Vivek Pandey

  • I modified the line of code in the red box to solve my problem

    1722566286530.png