<?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 Re: Trouble in importing data having some special characters in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493317#M72280</link>
    <description>&lt;P&gt;If you save your Excel file as Unicode text, you should also use unicode to read it into SAS:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename Textfile '&amp;lt;path&amp;gt;' ENCODING='UTF16B';
data want;
  infile textfile;
  input....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I do not quite understand that only some characters get converted to two bytes - according to the SAS documentation, the UTF-16 encodings store all characters as two bytes. Are you quite sure that you are not using UTF-8?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 09:10:12 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2018-09-07T09:10:12Z</dc:date>
    <item>
      <title>Trouble in importing data having some special characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493293#M72276</link>
      <description>Am importing an excel which contains some Latin characters as well. As it's not read properly, i googled and learnt that we can save the excel as unicode text file and then use proc import with encoding of utf-16.&lt;BR /&gt;Now am able to read it. But the dataset contains some extra symbols came along with latin characters.&lt;BR /&gt;Example&lt;BR /&gt;Â became Â-&amp;gt; or Âf like this.&lt;BR /&gt;How to read this properly and also how to process using string functions like cats and then report it back to excel properly with no extra symbols or letters.&lt;BR /&gt;Note: am using SAS for windows(9.3)&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 07 Sep 2018 06:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493293#M72276</guid>
      <dc:creator>JoshuaHarris</dc:creator>
      <dc:date>2018-09-07T06:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in importing data having some special characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493317#M72280</link>
      <description>&lt;P&gt;If you save your Excel file as Unicode text, you should also use unicode to read it into SAS:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename Textfile '&amp;lt;path&amp;gt;' ENCODING='UTF16B';
data want;
  infile textfile;
  input....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I do not quite understand that only some characters get converted to two bytes - according to the SAS documentation, the UTF-16 encodings store all characters as two bytes. Are you quite sure that you are not using UTF-8?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 09:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493317#M72280</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-09-07T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in importing data having some special characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493541#M72284</link>
      <description>&lt;P&gt;FWIW I didn't find a UTF-16 save as option in my Excel 365, only UTF-8 and UTF-BigEndian&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493541#M72284</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-07T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in importing data having some special characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493552#M72285</link>
      <description>I saved it as unicode text and read the file again with utf-16.&lt;BR /&gt;Found a workaround for this temporarily.&lt;BR /&gt;Only few number of rows contains this special encoding data. So filtered&lt;BR /&gt;out using excel filter option on that column and copied it to notepad and&lt;BR /&gt;replace all there with space and copy back to excel solves my problem&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-in-importing-data-having-some-special-characters/m-p/493552#M72285</guid>
      <dc:creator>JoshuaHarris</dc:creator>
      <dc:date>2018-09-07T16:45:31Z</dc:date>
    </item>
  </channel>
</rss>

