How to Encode the URL when the Query Part contains special characters

How to Encode the URL when the Query Part contains special characters

book

Article ID: KB0079397

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization -

Description

When a (url-encoded) http get request, where the query part contains special characters (& etc), is sent to a procedure exposed as a rest service, the input arrives truncated.

Query sent: http://poc.rd.demo.net/api-dev/mlcsng/json/MLCSNG/studysearch?site=Markets+Support+%26+Development 

Unencoded data: ‘Market Support & Development‘
Input reaching procedure: ‘Markets+Support+’

Issue/Introduction

How to Encode the URL when the Query Part contains special characters

Resolution

There is a workaround, please use '%2526' to replace ‘&‘ for name or value in the URL.. Please let me know if this is an acceptable solution.