<?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: Importing CSV Files with charachters like &amp;quot;≤&amp;quot; . Which options / encoding to use? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539646#M7091</link>
    <description>&lt;P&gt;Encodig UTF8 or UTF16 should be able to cope with those characters.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 14:36:59 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2019-03-01T14:36:59Z</dc:date>
    <item>
      <title>Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539639#M7090</link>
      <description>&lt;P&gt;Importing CSV Files with charachters like "≤" ,"mï¿½",&amp;nbsp; . Which options / encoding to use?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539639#M7090</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2019-03-01T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539646#M7091</link>
      <description>&lt;P&gt;Encodig UTF8 or UTF16 should be able to cope with those characters.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539646#M7091</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-01T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539657#M7092</link>
      <description>&lt;P&gt;What happen's when you tried to import the file in SAS. Did you get a warning?&lt;/P&gt;
&lt;PRE&gt;WARNING: Some character data was lost during transcoding in column&lt;/PRE&gt;
&lt;P&gt;Your SAS session might be running in wlatin or latin1 encoding. You may need to run SAS with UTF-8 encoding. Changing the encoding might require help from SAS admins, require to change in configuration file. It all depends on your environment setup. If your running on a server environment then it is required to setup the encoding at the start of the session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is an example of explicitly setting the Base SAS (not SPD Server) session encoding with the OPTIONS statement:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="xis-codeFragment"&gt;options encoding="utf-8"; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PC SAS, open the utf-8 application. You might find it under SAS&amp;gt;Additional Languages in Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539657#M7092</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-03-01T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539659#M7093</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work."W1FTF7X"n / view = work."W1FTF7X"n ;
 infile '/SASDATA/DataResult/ETL_InputFiles/AA/TT.csv'
 lrecl = 428
delimiter = ';'
dsd
missover
firstobs = 2 encoding="utf-8";
;



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I used above code but the characters dissapear now, or are translated by a space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: A character that could not be transcoded has been replaced in record 3.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 4.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 5.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 6.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 7.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 8.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 9.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 10.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 11.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 12.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 13.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 14.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 15.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 16.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 17.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 18.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 19.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 20.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 21.&lt;BR /&gt;WARNING: A character that could not be transcoded has been replaced in record 22.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539659#M7093</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2019-03-01T15:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539660#M7094</link>
      <description>&lt;P&gt;Well, there are some odd things going on with your code here.&amp;nbsp; First off, why are you using numeric literals and creating a view as well?&lt;/P&gt;
&lt;PRE&gt;data work."W1FTF7X"n / view = work."W1FTF7X"n ;&lt;/PRE&gt;
&lt;P&gt;That looks very peculier to me.&amp;nbsp; It should just be:&lt;/P&gt;
&lt;PRE&gt;data work.w1ftf7x;
&lt;/PRE&gt;
&lt;P&gt;This leads on to my second question, you state you are using a CSV file - that is a Comma Separated Variable file, however you are specifying a delimiter of ; which is not a comma.&amp;nbsp; Therefore, is the file an actual CSV, or is it a delimited file?&amp;nbsp; Or is it in fact an Excel file, which the named literals tends to imply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, encoding needs to be set for the environment, not just the step.&amp;nbsp; Your environment is set at startup, so you might need your IT group to provide a UTF8 encoding SAS session to be able to work with the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539660#M7094</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-01T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539663#M7095</link>
      <description>&lt;P&gt;i'm using DI studio and a file reader. But i changed the file reader to user written body so i can add the encoding option. This explains the view statement. &lt;BR /&gt;&lt;BR /&gt;I'm using a .csv file but it's delimiter is a ";"&lt;BR /&gt;&lt;BR /&gt;This can give a lot problems if we change it for our whole environment. I'm looking for a solution to only use it to read in this .csv (or delimited file)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;EDIT: this should not be in the "new user" section.. don't know how it got here&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539663#M7095</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2019-03-01T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539667#M7096</link>
      <description>&lt;P&gt;Ok, the view might be a DI thing, never used it, but it does look very odd to use named literals.&lt;/P&gt;
&lt;P&gt;CSV is an international standard for Comma Separated Variable data:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Comma-separated_values" target="_blank"&gt;https://en.wikipedia.org/wiki/Comma-separated_values&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you use a Semicolon in the data, it is not a CSV, it is a delimited file.&amp;nbsp; Calling something an identifier which it is not is very confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, thats a side issue.&amp;nbsp; If you want to be able to use characters which are not in the character set then you will need a system with the encoding setup correctly.&amp;nbsp; Changing it for the step will read the data, however the system still does not understand that data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539667#M7096</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-01T15:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539668#M7097</link>
      <description>thanks RW9, that is a clear answer.. so there are no ways to read this data on a system which uses latin1?</description>
      <pubDate>Fri, 01 Mar 2019 15:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539668#M7097</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2019-03-01T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539751#M7118</link>
      <description>&lt;P&gt;I might suggest a way that might work, but be caution since this will bypass the default configuration file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Find the configuration file for utf-8 (sasv9.cfg), usually in "/opt/sas/sashome/prod/SASFoundation/9.4/nls/u8&lt;EM&gt;/sasv9.cfg"&lt;/EM&gt; and copy it to your user folder(/user/name/sasv9.cfg). Make sure the configuration file has all the necessary setup information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) open .profile and add the environment variable. If multiple node then add in all of the profiles.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;export SASV9_OPTIONS='-config /user/name/sasv9.cfg'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3) Researt SAS and see where the configuration file is bypassed or not.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=config;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;Your admins might not like you to do this.&lt;/P&gt;
&lt;P&gt;This method worked for me to increase memsize from the default 2G to 6G in my Unix environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&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, 01 Mar 2019 19:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539751#M7118</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-03-01T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV Files with charachters like "≤" . Which options / encoding to use?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539980#M7156</link>
      <description>&lt;P&gt;wlatin1 doesn't support those characters, so even if you load the data, you wouldn't be able to work with them.&amp;nbsp; Just fire up a separate UTF8 session and do it in there, think most should have moved onto UTF8 by now anyways?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 09:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-CSV-Files-with-charachters-like-quot-quot-Which/m-p/539980#M7156</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-03-04T09:20:10Z</dc:date>
    </item>
  </channel>
</rss>

