It's all about the answers!

Ask a question

RQMConnectionHelper.getFromServer() will get some messy code


Mei Li (1144) | asked Sep 15 '09, 3:31 a.m.
In RQM2.0, when i use RQMConnecionHelper.getFromServer(urlLink),the urlLink is like this:https://9.186.56.53:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo/requirement/urn:com.ibm.rqm:requirement:2
will get messy code like this:

{Cache-Control=, Server=, Content-Type=, rqm_responseMessage=<xml><ns3><ns4>https://9.186.56.53:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo/requirement/urn:com.ibm.rqm:requirement:2</ns4><ns4>requirement12</ns4><ns4>des</ns4><ns5>2009-09-15T06:26:29.609Z</ns5><ns5>authoring.s1</ns5><ns4>ADMIN</ns4><ns5>ADMIN</ns5><ns3>unassigned</ns3><ns3>state</ns3><ns5>updated</ns5><ns3>2009-09-15T06:08:20.531Z</ns3><ns3><ns3><ns3><ns3>闇�姹傜被鍨�/ns3:name><ns3></ns3></ns3><ns3><ns3>鍚姩 URL</ns3><ns3></ns3></ns3><ns3><ns3>shortDescription</ns3><ns3>des</ns3></ns3><ns3><ns3>闇�姹備紭鍏堢骇</ns3><ns3>priority</ns3></ns3><ns3><ns3>澶嶅鐘舵��/ns3:name><ns3>state</ns3></ns3><ns3><ns3>婧愭爣璇�/ns3:name><ns3></ns3></ns3></ns3></ns3>
, Expires=, Date=, Transfer-Encoding=, ETag=, rqm_responseCode=200, null=}

please help me to handle this problem....

2 answers



permanent link
John Nason (2.4k1012) | answered Sep 16 '09, 11:39 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello,
Where are you getting the RQMConnectionHelper code from (tool, source, etc)?

If I was to guess, the connection helper is not retrieving the content with a specified encoding and is using the default encoding. The encoding should explicitly be set to "UTF-8".

Regards,
John

permanent link
Mei Li (1144) | answered Sep 20 '09, 9:45 p.m.
Hello,
Where are you getting the RQMConnectionHelper code from (tool, source, etc)?

If I was to guess, the connection helper is not retrieving the content with a specified encoding and is using the default encoding. The encoding should explicitly be set to "UTF-8".

Regards,
John

thank you,i have resolve the problem, i went to reinstall a firefox with English version,so everything goes well...

Your answer


Register or to post 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.