<?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 Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western encoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640623#M190871</link>
    <description>&lt;P&gt;Hey There,&lt;/P&gt;&lt;P&gt;I am trying to read a column holding Japanese character from an excel sheet via infile or proc import statement but getting boxes in output. Tried to convert input sheet to unicode txt and UTF-8 csv but no luck.&amp;nbsp; Current system encoding is Latin1 western (ISO). Appreciate your help. Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename temp '&amp;lt;location&amp;gt;/Bookutf8.csv' encoding='UTF-8';&lt;BR /&gt;data test;&lt;BR /&gt;infile temp dlm=',' dsd firstobs=2 encoding='utf-8'&amp;nbsp;&lt;BR /&gt;input variable1 $ variable2 $;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 07:20:08 GMT</pubDate>
    <dc:creator>RaSha</dc:creator>
    <dc:date>2020-04-17T07:20:08Z</dc:date>
    <item>
      <title>Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western encoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640623#M190871</link>
      <description>&lt;P&gt;Hey There,&lt;/P&gt;&lt;P&gt;I am trying to read a column holding Japanese character from an excel sheet via infile or proc import statement but getting boxes in output. Tried to convert input sheet to unicode txt and UTF-8 csv but no luck.&amp;nbsp; Current system encoding is Latin1 western (ISO). Appreciate your help. Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename temp '&amp;lt;location&amp;gt;/Bookutf8.csv' encoding='UTF-8';&lt;BR /&gt;data test;&lt;BR /&gt;infile temp dlm=',' dsd firstobs=2 encoding='utf-8'&amp;nbsp;&lt;BR /&gt;input variable1 $ variable2 $;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 07:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640623#M190871</guid>
      <dc:creator>RaSha</dc:creator>
      <dc:date>2020-04-17T07:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western enco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640630#M190875</link>
      <description>&lt;P&gt;If the data contains chars that don't exist in Latin1, you must change the encoding of you sas-session to read the data properly.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 07:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640630#M190875</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-04-17T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western enco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640688#M190903</link>
      <description>Hi.. Thanks for your reply..&lt;BR /&gt;&lt;BR /&gt;I tried to use encoding statement in data step but it didn't work and I also tried to add the statement in configuration file. After which the metadata server threw errors and didn't connect ..&lt;BR /&gt;&lt;BR /&gt;Any sample code which you can suggest may work?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 17 Apr 2020 11:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640688#M190903</guid>
      <dc:creator>RaSha</dc:creator>
      <dc:date>2020-04-17T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western enco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640754#M190931</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi.. Thanks for your reply..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use encoding statement in data step but it didn't work and I also tried to add the statement in configuration file. After which the metadata server threw errors and didn't connect ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any sample code which you can suggest may work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640754#M190931</guid>
      <dc:creator>RaSha</dc:creator>
      <dc:date>2020-04-17T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western enco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640772#M190941</link>
      <description>&lt;P&gt;If your SAS session is running using a single byte encoding, like WLATIN1, then there are only 256 possible characters it can represent. And none of them are Japanese characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably need to change the encoding for the whole SESSION, not just how this one file is being read.&amp;nbsp; That must be done when you start SAS, you cannot do it in the program itself.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check with your local SAS support how you can start SAS using UTF-8 encoding or UNICODE support.&amp;nbsp; If you are running SAS Display Manager then your typically use a different command (or click on a different ICON in Windows).&amp;nbsp; If you are using Enterprise Guide or SAS/Studio you connect to a different SAS application server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 16:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640772#M190941</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-17T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading Japanese character with UTF-8 encoding, current SAS env has Latin1 Western enco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640897#M190975</link>
      <description>&lt;P&gt;I can't verify as my session is UTF8, but try to set the dataset's encoding to UTF8, like you did for the filename.&lt;/P&gt;
&lt;P&gt;You won't be able to display the Japanese characters in your &lt;EM&gt;wlatin1&lt;/EM&gt; SAS session though.&lt;/P&gt;
&lt;P&gt;Also check that the variable lengths are sufficient for storing multi-byte characters.&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>Sat, 18 Apr 2020 00:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-reading-Japanese-character-with-UTF-8-encoding-current/m-p/640897#M190975</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-18T00:24:25Z</dc:date>
    </item>
  </channel>
</rss>

