<?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 Changing session character encoding from wlatin1 to utf-8 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218516#M267809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem importing a delimited text file into SAS. I get an error message about invalid string. I have seen that one sollution of this problem could be to change the session character encoding in SAS from wlatin1 to utf-8. I have tried to change the sasv9.cfg file line "-ENCODING wlatin1" to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;"-ENCODING utf-8", but this is not working. Infact nothing is working after that change, error message about connection failure to local server is given. How do I change the session character encoding? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 08:42:57 GMT</pubDate>
    <dc:creator>peter_sjogarde</dc:creator>
    <dc:date>2015-04-10T08:42:57Z</dc:date>
    <item>
      <title>Changing session character encoding from wlatin1 to utf-8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218516#M267809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem importing a delimited text file into SAS. I get an error message about invalid string. I have seen that one sollution of this problem could be to change the session character encoding in SAS from wlatin1 to utf-8. I have tried to change the sasv9.cfg file line "-ENCODING wlatin1" to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;"-ENCODING utf-8", but this is not working. Infact nothing is working after that change, error message about connection failure to local server is given. How do I change the session character encoding? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 08:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218516#M267809</guid>
      <dc:creator>peter_sjogarde</dc:creator>
      <dc:date>2015-04-10T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing session character encoding from wlatin1 to utf-8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218517#M267810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you could change the sasv9.cfg file, you have direct access to wherever the SAS system is installed. I recommend starting SAS from the commandline and watch what happens (error message(s)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that you have SBCS SAS installed, which cannot handle utf-8. You will need to install DBCS SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 09:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218517#M267810</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-10T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing session character encoding from wlatin1 to utf-8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218518#M267811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most recent versions of SAS (desktop) are installing the SBCS and DBCS alongside. The only change using the correct entrypoint to start.&amp;nbsp; &lt;BR /&gt;Check that as the old approach of changing config-files should be avoided to the minimum. Then sbcs start is pointing to an&amp;nbsp; ..\en\..&amp;nbsp; naming and there should be one similar with an ..\u8\...&lt;BR /&gt;When that is not there only the SBCS has been installed and a reinstall with u8 is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 12:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218518#M267811</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-10T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing session character encoding from wlatin1 to utf-8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218519#M267812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful, in order to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;natively &lt;/EM&gt;&lt;/SPAN&gt;process SAS &lt;STRONG&gt;tables&lt;/STRONG&gt; encoded in UTF-8 (or UTF-16), you need to use another sas launcher, which means another SAS engine &amp;amp; another character functions (KSCAN , KSUBSTR etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/92unicodesrvr.pdf" title="http://support.sas.com/resources/papers/92unicodesrvr.pdf"&gt;http://support.sas.com/resources/papers/92unicodesrvr.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, SAS Foundation is installed in dual mode ISO (default) and UTF (called DBCS). Starting with DBCS has strong implications further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance, on Linux, the command line to lauch SAS DBCS with UTF-8 is the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;$SASROOT/SASFoundation/9.2/bin/&lt;STRONG&gt;sas_u8&lt;/STRONG&gt; -encoding utf-8&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to your problem, using a Unicode SAS session might be unnecessary. You can try, in your default SAS (ISO) session assigning your Filename with the option &lt;STRONG&gt;ENCODING=utf8&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;SAS can transcode UTF to ISO (e g WLATIN1) at the import step and let you then code as usual. The target tables are then stored in ISO (WLATIN1), of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;FILENAME myfile 'my pathname' ENCODING=utf8;&lt;/P&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-session-character-encoding-from-wlatin1-to-utf-8/m-p/218519#M267812</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2015-04-10T13:14:51Z</dc:date>
    </item>
  </channel>
</rss>

