Question
Capgemini
Capgemini
IN
Capgemini
Posted: Sep 20, 2017
Last activity: Oct 16, 2018
Last activity: 16 Oct 2018 12:03 EDT
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.