<?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: Unable to read chinese characters in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567266#M11473</link>
    <description>&lt;P&gt;And could you change your sas encoding as&amp;nbsp;&amp;nbsp;euc-cn&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 13:41:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-06-19T13:41:20Z</dc:date>
    <item>
      <title>Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567135#M11449</link>
      <description>&lt;P&gt;I am unable to read chinese characters from my source file. I will not be sharing the source file coz its has customer details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the below code for importing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname sample xlsx "C:\MBR\property.xlsx";&lt;/P&gt;&lt;P&gt;data Sheetnames;&lt;BR /&gt;set sashelp.vtable;&lt;BR /&gt;where libname = 'SAMPLE';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;libname SAMPLE clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;select count(*)&lt;BR /&gt;into :NObs&lt;BR /&gt;from Sheetnames;&lt;BR /&gt;select compress(memname,'$')&lt;BR /&gt;into :Name1-:Name%left(&amp;amp;NObs)&lt;BR /&gt;from Sheetnames;&lt;BR /&gt;select compress(memname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','K') AS CNAME&lt;BR /&gt;into :data1-:data%left(&amp;amp;nobs)&lt;BR /&gt;FROM Sheetnames;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro import;&lt;BR /&gt;%do i=1 %to &amp;amp;NObs;&lt;BR /&gt;proc import datafile="C:\MBR\property.xlsx "&lt;BR /&gt;out= &amp;amp;&amp;amp;data&amp;amp;i&lt;BR /&gt;dbms=xlsx replace;&lt;BR /&gt;sheet="&amp;amp;&amp;amp;name&amp;amp;i";&lt;BR /&gt;getnames=no;&lt;BR /&gt;datarow=6;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%import;&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;It would be very helpful if someone has the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 05:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567135#M11449</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-19T05:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567238#M11465</link>
      <description>&lt;P&gt;What is your SAS encoding ? if it was UTF-8 or EUN_CN ,should be OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc options option=encoding value;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 12:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567238#M11465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-19T12:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567239#M11466</link>
      <description>UAT-8&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 12:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567239#M11466</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-19T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567250#M11469</link>
      <description>&lt;P&gt;An workaround way is save your excel as a CSV file .&lt;/P&gt;
&lt;P&gt;and import it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename x 'c:\&lt;SPAN&gt;property.xlsx&amp;nbsp;' encoding='utf-8';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc import ........&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567250#M11469</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-19T13:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567254#M11471</link>
      <description>But ll have to do this for 50 files.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567254#M11471</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-19T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567265#M11472</link>
      <description>&lt;P&gt;There are many VBS in internet to convert excel to csv , google it you will find (&amp;nbsp; Excel2Csv.bat&amp;nbsp; ) .&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567265#M11472</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-19T13:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567266#M11473</link>
      <description>&lt;P&gt;And could you change your sas encoding as&amp;nbsp;&amp;nbsp;euc-cn&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567266#M11473</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-19T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567271#M11474</link>
      <description>&lt;P&gt;Also try these options.&lt;/P&gt;
&lt;PRE&gt;libname x xlsx 'c:\temp\x.xlsx' inencoding='utf-8' outencoding='utf-8';
&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567271#M11474</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-19T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567276#M11475</link>
      <description>Ok will try those and get back to you thank you for your time.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567276#M11475</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-19T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567529#M11532</link>
      <description>&lt;P&gt;I got this error in the log after running the below code that was shared yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24 libname x xlsx 'C:\MBR\property.xlsx' inencoding='utf-8' outencoding='utf-8';&lt;BR /&gt;_______&lt;BR /&gt;278&lt;BR /&gt;WARNING 278-63: The option INENCODING is not implemented in the XLSX engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Libref X was successfully assigned as follows:&lt;BR /&gt;Engine: XLSX&lt;BR /&gt;Physical Name: C:\MBR\property.xlsx&lt;BR /&gt;WARNING 278-63: The option OUTENCODING is not implemented in the XLSX engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 04:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/567529#M11532</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-20T04:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568274#M11645</link>
      <description>&lt;P&gt;Can anyone help on this please.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 04:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568274#M11645</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-24T04:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568286#M11647</link>
      <description>Interesting problem, afaik xlsx-files are stored in something fancy like utf-16 or even utf-32 - this was the case when I extracted an excel-file some time ago. The best solution starts with getting rid of excel as data source at all, because sooner or later you will run into other problems. But this has been recommended in the community so many times,that I stopped counting. You could, of course, open a track with tech-support, maybe theyhave a better idea.</description>
      <pubDate>Mon, 24 Jun 2019 05:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568286#M11647</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-06-24T05:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read chinese characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568295#M11648</link>
      <description>Ok thanks a lot for your advice.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2019 05:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-read-chinese-characters/m-p/568295#M11648</guid>
      <dc:creator>parmesh</dc:creator>
      <dc:date>2019-06-24T05:55:59Z</dc:date>
    </item>
  </channel>
</rss>

