how to handle chinese in ETM API
When post requests to ETM API to create test cases or test scripts, the request body contains Chinese error reports.
"The element type "ns2:steps" must be terminated by the matching end-tag "</ns2:steps>", After encoding Chinese in utf-8, the same error occurs. How to include Chinese in the request body and display it normally in the system
|
One answer
David Honey (1.8k●1●7)
| answered Jul 10 '23, 1:04 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 10 '23, 1:05 p.m. Your POST request has a
Comments
zjx zjx
commented Jul 10 '23, 9:26 p.m.
Hi, David Honey
Still the same error after converting to rdf+xml
Your XML is not well formed. If I copy what you provided into https://codebeautify.org/xml-parser-online I see it has errors. For example,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
As with all questions about REST APIs, please provide details of the request URI, request headers, request body (if applicable), and the response body and headers you got.
request url:https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testscript
reponse header:{'Date': 'Mon, 10 Jul 2023 08:27:41 GMT', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload, max-age=31536000', 'X-Powered-By': 'Servlet/3.1', 'x-com-ibm-team-scenario': '192.168.22.1', 'Connection': 'close', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/xml', 'Content-Language': 'en-US'}