<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WebAPI handles Chinese Characters / Emoji</title><link>https://community.appian.com/discussions/f/integrations/20113/webapi-handles-chinese-characters-emoji</link><description>I&amp;#39;m writing a WebAPI which required to handle HTTP POST and the body will include Chinese characters and emoji. I wrote a loop back test but I found that the WebAPI returns &amp;quot;?&amp;quot; when I use cURL to test. Is there any example or best practice on how to handle</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: WebAPI handles Chinese Characters / Emoji</title><link>https://community.appian.com/thread/131129?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 10:24:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07c57d70-0319-4702-aa60-9bb488badf58</guid><dc:creator>Kriti Shaik</dc:creator><description>&lt;p&gt;Hi Daniel, I hope this might be useful for you to understand some context over&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This&amp;nbsp;occurs when the Web API&amp;nbsp;does not send an appropriate &amp;quot;&lt;/span&gt;&lt;code&gt;Content-Type&amp;quot;&lt;/code&gt;&lt;span&gt;&amp;nbsp;header with a character set included, which the client system relies on to interpret the content sent by the Web API.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I would suggest to Explicitly specify the&amp;nbsp;&lt;code&gt;Content-Type&lt;/code&gt;&amp;nbsp;header with the relevant character set in the SAIL code for the Web API using &lt;code&gt;a!httpHeader&lt;/code&gt;&amp;nbsp;in the headers parameter of the&amp;nbsp;&lt;code&gt;a!httpResponse&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; For example, to correctly send JSON with the UTF-8-character set.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;headers: {
  a!httpHeader(
    name: &amp;quot;Content-Type&amp;quot;,
    value: &amp;quot;application/json; charset=utf-8&amp;quot;
  )
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WebAPI handles Chinese Characters / Emoji</title><link>https://community.appian.com/thread/131099?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 23:18:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ceaea83-ae93-4c00-9e3b-dbd886e6f69d</guid><dc:creator>Ahmed Mamdouh</dc:creator><description>&lt;p&gt;Did you solve it or workaround?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>