Rest api Unicode Character problem

t_nehir
Kilo Contributor

Hi All,

We have implemented an integration between Snow and third party supplier but when I send out short description information to third party, occurred Unicode character problem;

find_real_file.png

My business rule that trigger to third party system is here; also putting Http headers information . I tried everything I had but I couldn't replace this HTML characters. I need to replace "ı" to "ı" . How can I fix the problem guys? Thanks.

find_real_file.png

find_real_file.png

10 REPLIES 10

Alikutty A
Tera Sage

Hi Tugay,



In the business rule, Does it work if you replace the all unicode characters in short description with ı?



var short = current.short_description.toString();


short = short.split('ı').join('ı');


r.setStringParameter('subject', short);



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


Thanks for your interest but it did not work.



find_real_file.png


It seem to have some relation with the language in which short description is entered. Please see if this it works when you encode the short description.



var short = current.short_description.toString();


short = encodeURI(short);




Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


Changed the mode?



find_real_file.png