Question

5
Replies
4080
Views
Close popover
Sarabdeep Singh (SarabdeepS)
Capgemini

Capgemini
IN
SarabdeepS Member since 2016 7 posts
Capgemini
Posted: September 20, 2017
Last activity: October 16, 2018
Closed
Solved

Connect Rest - Encoding special characters to UTF-8 is not working

Hi,
I have requirement where I need to pass metadata (in JSON fomat) & attachment using Post method of connect-rest. This works fine when metadata does not contain any special characters.
But if metadata contain some special characters -> *, /,|, [,],:,' then service provider expects to encode these characters in UTF-8 format and send in request.
Even i am encoding these characters to UTF-8 but and I can see it in the tracer and clipboard that special characters are converted to UTF-8.
But the request at the service provider end is received without encoding.
Please let me know on how to resolve this problem in connect rest.
Example:
"TestProducts:Test Products/Video/Videoscape/Test Videoscape Origination Suite/Test Digital Encoders/Test D9096 4:2:2 10-Bit AVC Encoder" - colon : is special character
"TestProducts:Test Products/Test Interfaces and Modules/Test Services Modules/Test MGX Service Resource Module Enhanced [SRM-E]" - brackets [ ] are special character

***Updated by moderator: Lochan to add Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Data Integration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.