<?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: Abnormal characters in sas file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894627#M353379</link>
    <description>&lt;P&gt;What is your session encoding?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Sep 2023 15:46:15 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-09-16T15:46:15Z</dc:date>
    <item>
      <title>Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894626#M353378</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a 4gb SAS dataset with company information. The company name column is very important to me. However, I found though most of the observations are in normal format, e.g. "Birly Co", there are many rows has values like "&lt;SPAN&gt;ÃƒÂ". Do you know if this is a problem in the original dataset that I cannot solve as a data user, or it is a problem of encoding on my computer?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I actually tried encoding it to utf-8 or utf-16le, utf-16be in python, but still I got such weird characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 14:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894626#M353378</guid>
      <dc:creator>Eileen1496</dc:creator>
      <dc:date>2023-09-16T14:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894627#M353379</link>
      <description>&lt;P&gt;What is your session encoding?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 15:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894627#M353379</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-16T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894631#M353382</link>
      <description>Hi Kurt, what do you mean by "session encoding"? I tried utf-8, utf-16le,&lt;BR /&gt;utf-16be in python. In sas I just open the file directly because it is&lt;BR /&gt;originally in sas7bdat format. And it also shows the abnormal chars.&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Sep 2023 16:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894631#M353382</guid>
      <dc:creator>Eileen1496</dc:creator>
      <dc:date>2023-09-16T16:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894633#M353384</link>
      <description>&lt;P&gt;In SAS, run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding value;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to see how the session encoding is set.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 17:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/894633#M353384</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-16T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895058#M353574</link>
      <description>&lt;P&gt;Hi Kurt! It return the following to me:&lt;/P&gt;&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M6&lt;/P&gt;&lt;P&gt;Option Value Information For SAS Option ENCODING&lt;BR /&gt;Value: WLATIN1&lt;BR /&gt;Scope: SAS Session&lt;BR /&gt;How option value set: Config File&lt;BR /&gt;Config file name:&lt;BR /&gt;C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I change anything so this problem can be fixed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 13:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895058#M353574</guid>
      <dc:creator>Eileen1496</dc:creator>
      <dc:date>2023-09-20T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895106#M353594</link>
      <description>&lt;P&gt;You will need to have a session started with utf-8 encoding to properly use the dataset. Talk with your SAS administrators how to get one.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 18:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895106#M353594</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-20T18:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895107#M353595</link>
      <description>&lt;P&gt;Dear Kurt, thanks for pointing out the problem! I would never realize that alone probably, I will talk with them.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 18:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895107#M353595</guid>
      <dc:creator>Eileen1496</dc:creator>
      <dc:date>2023-09-20T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895668#M353882</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Kurt, thanks for pointing out the problem! I would never realize that alone probably, I will talk with them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895668#M353882</guid>
      <dc:creator>Eileen1496</dc:creator>
      <dc:date>2023-09-25T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal characters in sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895672#M353883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can try :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Suppose your abnormal characters in SAS file is in "Comments" column/field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use code below to remove/replace weird/abnormal characters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Comments=KCVT(compress(&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;Comments,,'kw'), 'wlatin1', 'UTF-8');&lt;/SPAN&gt;&lt;BR /&gt;or&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Comments&lt;/SPAN&gt; =compress(&lt;SPAN&gt;Comments&lt;/SPAN&gt;, , 'kw');&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abnormal-characters-in-sas-file/m-p/895672#M353883</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2023-09-25T14:45:44Z</dc:date>
    </item>
  </channel>
</rss>

