<?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: read the English character into SAS but shown as Chinese character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772789#M245404</link>
    <description>As Tom pointed it out. It is encoding problem .&lt;BR /&gt;Try change your SAS encoding into UTF-8 .&lt;BR /&gt;Or Save it as a CSV file and import it  with UTF-8 encoding in FILENAME .</description>
    <pubDate>Thu, 07 Oct 2021 15:11:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-10-07T15:11:21Z</dc:date>
    <item>
      <title>read the English character into SAS but shown as Chinese character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772762#M245399</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you know why I read the English character into SAS but shown as Chinese character?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following code,&lt;/P&gt;&lt;PRE&gt;proc import datafile = "G:\Raw_data\SIC_Code\SIC_CODE_LIST.xlsx"
OUT=SIC_CODE_LIST DBMS=XLSX replace;
Sheet='Sheet1';
RANGE='A1:A1421';
GETNAMES=YES;
RUN;&lt;/PRE&gt;&lt;P&gt;to read the following table,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;des&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Industry Group 011: Cash Grains&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0111&amp;nbsp;Wheat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0112&amp;nbsp;Rice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0115&amp;nbsp;Corn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0116&amp;nbsp;Soybeans&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0119&amp;nbsp;Cash Grains, Not Elsewhere Classified&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Industry Group 013: Field Crops, Except Cash Grains&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0131&amp;nbsp;Cotton&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result shows as below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图(2).png" style="width: 343px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64467i3295CC01F01D7AC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图(2).png" alt="屏幕截图(2).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but when I click on the text, it is still English character.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图(4).png" style="width: 280px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64468iB94673B4550E6572/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图(4).png" alt="屏幕截图(4).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know why, and how could I fix it? I would appreciate it if you could give me some advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772762#M245399</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-10-07T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: read the English character into SAS but shown as Chinese character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772767#M245400</link>
      <description>&lt;P&gt;What encoding if your SAS session using?&amp;nbsp; Check the macro variable SYSENCODING.&lt;/P&gt;
&lt;P&gt;What encoding is the XLSX file using?&amp;nbsp; I have no idea how to check that.&lt;/P&gt;
&lt;P&gt;Can you save the XLSX file as a delimited text file instead?&amp;nbsp; Then you could set the encoding of the text file in the INFILE statement you use when reading the text into SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772767#M245400</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-07T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: read the English character into SAS but shown as Chinese character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772789#M245404</link>
      <description>As Tom pointed it out. It is encoding problem .&lt;BR /&gt;Try change your SAS encoding into UTF-8 .&lt;BR /&gt;Or Save it as a CSV file and import it  with UTF-8 encoding in FILENAME .</description>
      <pubDate>Thu, 07 Oct 2021 15:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772789#M245404</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-10-07T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: read the English character into SAS but shown as Chinese character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772992#M245485</link>
      <description>just in case people face similar problems like me, please see the links below,&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/How-to-Change-Encoding-from-WLATIN1-to-UTF-8-in-SAS-Enterprise/td-p/597234" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/How-to-Change-Encoding-from-WLATIN1-to-UTF-8-in-SAS-Enterprise/td-p/597234&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/51/586.html" target="_blank"&gt;http://support.sas.com/kb/51/586.html&lt;/A&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-the-English-character-into-SAS-but-shown-as-Chinese/m-p/772992#M245485</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2021-10-08T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

