The CreatorCon Call for Content is officially open! Get started here.

Outbound integration with emoticons not working

amju101
Kilo Contributor

We have an outbound integration which is working fine except in case of comments contains emoticon characters. Did any one faced this situation? How can we fix this?

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @amju101 

You can replace your replace all emoticons from the comments before triggering the outbound. You can use script like the one below.

 

var comm = current.getComments();

comm = comm.replaceAll("🙂", "");

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

View solution in original post

4 REPLIES 4

AnveshKumar M
Tera Sage
Tera Sage

Hi @amju101 

You can replace your replace all emoticons from the comments before triggering the outbound. You can use script like the one below.

 

var comm = current.getComments();

comm = comm.replaceAll("🙂", "");

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

Thanks Anvesh, it worked for me.

Suyog Aptikar
Giga Guru

@amju101 

Is your payload failing when there is smiley in comments?
Can you try using encodeURIComponent to encode and at other end decodeURIComponent and see if this hfixes probem.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

@Suyog Aptikar Thanks for the response. But, we don't have access to other end.