<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic removing emoji from an xml file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/removing-emoji-from-an-xml-file/m-p/934605#M44929</link>
    <description>&lt;P&gt;Hello, I have an xml file which contains emoji and I looking for a Unix or a SAS solution the remove those from the original xml file before making any treatment on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone already works on that topic.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 18:56:37 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-07-03T18:56:37Z</dc:date>
    <item>
      <title>removing emoji from an xml file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/removing-emoji-from-an-xml-file/m-p/934605#M44929</link>
      <description>&lt;P&gt;Hello, I have an xml file which contains emoji and I looking for a Unix or a SAS solution the remove those from the original xml file before making any treatment on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone already works on that topic.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 18:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/removing-emoji-from-an-xml-file/m-p/934605#M44929</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-07-03T18:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: removing emoji from an xml file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/removing-emoji-from-an-xml-file/m-p/934636#M44930</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I have an xml file which contains emoji and I looking for a Unix or a SAS solution the remove those from the original xml file before making any treatment on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone already works on that topic.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly what character is it?&amp;nbsp; What is the hexcode?&lt;/P&gt;
&lt;P&gt;For example is it a &lt;A href="https://www.compart.com/en/unicode/U+1F60A" target="_self"&gt;smiley face&lt;/A&gt;?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  emoji = 'F09F988A'x ;
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1720051208649.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98146i0FE7D0D24D5383CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1720051208649.png" alt="Tom_0-1720051208649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once you know what character you are looking for try reading through the file and changing it to something else.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'bad.xml';
  file 'good.xml';
  input;
  _infile_ = tranwrd('F09F988A'x,':)');
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note if any of the lines in the XML are longer than 32K bytes then the code to find and replace the "emoji" character(s) will need to be more complicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 00:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/removing-emoji-from-an-xml-file/m-p/934636#M44930</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-04T00:02:31Z</dc:date>
    </item>
  </channel>
</rss>

