Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC REST API + special char & (&)

 hello,

With RTC REST api, when I try to call it with a "&" in some of his arguments, I get not results.

The parameter who contains the "&" special char in his value is encoded in the url, so the "&" is replaced by %26
and still no results at all.

Any idea on how to encode this special char in the argument of the url ? 
Short sample of the url call : 

  <server base url>/rpt/repository/workitem?fields=workitem/workItem[projectArea/name='Le projet' and (category/id="/Unassigned/Contributions+hors+XXXX%2FRecrutement+%26+comp%E9tences%2FR%26C+380%2FR%26C+380+-+nouveau+profil/"].... 

0 votes


Accepted answer

Permanent link

I think this is a general HTTP/REST related issue. Have you tried Google(OSLC encoding special characters)? I found several interesting hits.

Olivier ROSET selected this answer as the correct answer

0 votes


One other answer

Permanent link

 The solution. :) Sorry for bothering you with this basic url encoding stuff. : )





0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 478

Question asked: Feb 17 '20, 8:58 a.m.

Question was seen: 1,699 times

Last updated: Apr 02 '20, 5:12 a.m.

Confirmation Cancel Confirm