Rest api Unicode Character problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2017 03:40 AM
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;
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2017 04:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2017 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2017 05:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2017 05:19 AM