<?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: How to keep special (non ascii) characters when import from Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867560#M342649</link>
    <description>&lt;P&gt;Thanks for the replay. I checked that my encoding is not set to UTF8. Then, how to set to UTF8? I tried to search some solutions, just don't know how to do it.&amp;nbsp; e.g.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;at SAS invocation add the option,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;–encoding utf-8&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;add the system option to the SAS configuration file,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ENCODING=UTF-8&lt;/EM&gt;&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 20:25:25 GMT</pubDate>
    <dc:creator>sasecn</dc:creator>
    <dc:date>2023-03-31T20:25:25Z</dc:date>
    <item>
      <title>How to keep special (non ascii) characters when import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867295#M342536</link>
      <description>&lt;P&gt;I have a general question. I tried to import Excel file into SAS dataset. There are some special characters, e.g.&amp;nbsp;Ōki. How to keep those special characters (not sure if they are called non ASCII or not)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use proc import. The char is just missing e.g.&amp;nbsp;Ōki in Excel, but only shows "ki" in SAS dataset. I also tried to use libname pcfiles to load the Excel file into SAS dataset. But the special char was replaced by "?". e.g.&amp;nbsp;Ōki in Excel, but shows "?ki" in SAS dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 18:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867295#M342536</guid>
      <dc:creator>sasecn</dc:creator>
      <dc:date>2023-03-30T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep special (non ascii) characters when import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867360#M342558</link>
      <description>&lt;P&gt;Run this to confirm the encoding of your SAS session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option = encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Typically you need to set your session encoding to UTF8 to handle special characters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 22:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867360#M342558</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-30T22:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep special (non ascii) characters when import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867560#M342649</link>
      <description>&lt;P&gt;Thanks for the replay. I checked that my encoding is not set to UTF8. Then, how to set to UTF8? I tried to search some solutions, just don't know how to do it.&amp;nbsp; e.g.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;at SAS invocation add the option,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;–encoding utf-8&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;add the system option to the SAS configuration file,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ENCODING=UTF-8&lt;/EM&gt;&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867560#M342649</guid>
      <dc:creator>sasecn</dc:creator>
      <dc:date>2023-03-31T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep special (non ascii) characters when import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867564#M342651</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84484"&gt;@sasecn&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the replay. I checked that my encoding is not set to UTF8. Then, how to set to UTF8? I tried to search some solutions, just don't know how to do it.&amp;nbsp; e.g.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;at SAS invocation add the option,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;–encoding utf-8&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;add the system option to the SAS configuration file,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ENCODING=UTF-8&lt;/EM&gt;&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have to set the encoding option before SAS starts.&amp;nbsp; So you need to change how you start SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fastest way to get an answer is to ask your local SAS support team how they have configured SAS for you to use with utf-8.&amp;nbsp; If they have not done it yet they can open a support ticket with SAS to get some help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you access SAS?&amp;nbsp; What operating system is SAS running on.&lt;/P&gt;
&lt;P&gt;Some examples:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Using "PC" SAS running on your local Windows machine.&lt;/LI&gt;
&lt;LI&gt;Running SAS from the command line on your Unix server.&lt;/LI&gt;
&lt;LI&gt;Using Enterprise Guide (a Windows program) to access SAS running on the same Windows machine.&lt;/LI&gt;
&lt;LI&gt;Using Enterprise Guide to access SAS running on some other machine&lt;/LI&gt;
&lt;LI&gt;Using a browser to connect to SAS/Studio.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you have SAS installed on your PC then in addition to the normal app to start SAS with English support you should have one to start SAS with Unicode support.&lt;/P&gt;
&lt;P&gt;If you just type sas (or some other unix command) to launch SAS then you might be able use the command line switch.&amp;nbsp; But perhaps instead you need to use the -config switch to point to a different config file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using SAS/Studio or Enterprise Guide to connect to a SAS application server then your will need to connect to a different application server that is configured to use encoding=utf-8.&amp;nbsp; If your organization does not have one they should create one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867564#M342651</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-31T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep special (non ascii) characters when import from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867567#M342653</link>
      <description>&lt;P&gt;Thanks for the explanation. I am using EG, will talk to the IT in my company.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-special-non-ascii-characters-when-import-from-Excel/m-p/867567#M342653</guid>
      <dc:creator>sasecn</dc:creator>
      <dc:date>2023-03-31T20:44:54Z</dc:date>
    </item>
  </channel>
</rss>

