What Can I Do If Chinese Characters Returned by an API Are Garbled Characters?
The results returned by DLI APIs are encoded in UTF-8. You need to convert the encoding format of the returned information to UTF-8.
print(response.content.decode("utf-8"))
APIs FAQs
- How Do I Obtain the AK/SK Pair?
- How Do I Obtain the Project ID?
- Why Is Error "unsupported media Type" Reported When I Subimt a SQL Job?
- Are Project IDs of Different Accounts the Same When They Are Used to Call APIs?
- What Can I Do If an Error Is Reported When the Execution of the API for Creating a SQL Job Times Out?
- What Can I Do If Chinese Characters Returned by an API Are Garbled Characters?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more