<?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: Can't read some uncommon/special Chinese word from excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874241#M345386</link>
    <description>&lt;P&gt;You need using SAS (Unicode Support) to run your code.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 May 2023 07:41:45 GMT</pubDate>
    <dc:creator>RD2</dc:creator>
    <dc:date>2023-05-06T07:41:45Z</dc:date>
    <item>
      <title>Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874044#M345293</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just facing a terrible issue when I try to reading from an simple external Excel file, and found there is Warning(figure1) and the problomatic result(figure2).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sas session is EUC-CN, I am hunting for the solution, please let me know if you have, and I would be highly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS CODE:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;filename x "D:\sas code\encodingIssue\test.xlsx" encoding="utf-8";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc import datafile=x out=test dbms=xlsx replace;getnames=yes;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jack2012_0-1683253024537.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83641i204F099951091979/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jack2012_0-1683253024537.png" alt="Jack2012_0-1683253024537.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jack2012_1-1683253038660.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83642i2CDC31C67293BD0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jack2012_1-1683253038660.png" alt="Jack2012_1-1683253038660.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 02:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874044#M345293</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2023-05-05T02:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874047#M345294</link>
      <description>&lt;P&gt;I suggest you try the XLSX and EXCEL LIBNAMEs and see what your spreadsheet looks like in VIEWTABLE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x XLSX "D:\sas code\encodingIssue\test.xlsx" encoding="utf-8";

libname x EXCEL "D:\sas code\encodingIssue\test.xlsx" encoding="utf-8";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2023 02:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874047#M345294</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-05T02:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874064#M345302</link>
      <description>ERROR: Libref X is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR 22-7: Invalid option name ENCODING.


Thank you, but both snippet have above error.</description>
      <pubDate>Fri, 05 May 2023 05:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874064#M345302</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2023-05-05T05:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874076#M345310</link>
      <description>&lt;P&gt;See if UTF-16 helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: search this forum for Excel and Import data problems.&lt;/P&gt;
&lt;P&gt;If you are likely to have more than one file with the same data structure in the long run saving XLSX to a CSV format and reading that with a data step is much more consistent.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 06:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874076#M345310</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-05T06:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874220#M345376</link>
      <description>&lt;P&gt;Did you try without the ENCODING option? If not please try without that.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 22:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874220#M345376</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-05T22:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read some uncommon/special Chinese word from excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874241#M345386</link>
      <description>&lt;P&gt;You need using SAS (Unicode Support) to run your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 07:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-read-some-uncommon-special-Chinese-word-from-excel/m-p/874241#M345386</guid>
      <dc:creator>RD2</dc:creator>
      <dc:date>2023-05-06T07:41:45Z</dc:date>
    </item>
  </channel>
</rss>

