<?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: Not able to read chinese characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305644#M65210</link>
    <description>&lt;P&gt;If your SAS server cannot be changed to UTF-8 (which is more than likely what you need) you may introduce a second SAS server living alongside it. This assumes a datamanagement basic or advanced configuration where you have a logical server context (by default named SASApp) in the metadata. If that's the case (again, I am assuming), create another server context using deployment wizard, e.g. appropriately named SASUTF, that starts SAS unicode server processes. This way you can choose to use that server where othwers can continue to use their Latin servers as usual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code attempts to set the encoding by using the LOCALE option. This is however not enough. locale is about language / culture dependend presentation of dates, numbers etc. It will not affect the session encoding. This can only be done at SAS invocation time. There is a &lt;A href="http://support.sas.com/documentation/onlinedoc/nls/" target="_self"&gt;SAS NLS homepage&lt;/A&gt; in the support site for lots of detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not have the setup as I suggested you can always start a SAS session by using the appropriate start script in the SASROOT/bin/ directory. Look for something like sas_u8 or sas_dbcs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all in ignorance about your the details of your technical environment (O/S, SAS client, licensed products). Please elaborate on this if you want to have more guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 12:16:06 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-10-19T12:16:06Z</dc:date>
    <item>
      <title>Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305626#M65208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to import the data from excel file to data set using below code:-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options locale=zh_CN; 
    PROC IMPORT OUT= work.translate_title_footnotes
                DATAFILE= "/opt/standards/test/test.xls"
                DBMS=xls REPLACE;
         sheet="title_footnotes";
         getnames=yes;
    RUN;

	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the chinese characters are not getting read and writtent properly due to the encoding problem. I am able to change the encoding locally in my configuration file and it works fine but when i remote submit the code, the data gets distorted.Also, I can't change the encoding of SAS on the server since it might cause problems to other users working on it.&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Attached is the excel file from which I am reading the data. Please help me with the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 10:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305626#M65208</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-10-19T10:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305632#M65209</link>
      <description>&lt;P&gt;What is your encoding setting. You probably need&amp;nbsp;to define a double byte, like UTF-8.&lt;/P&gt;
&lt;P&gt;Can you see what encoding is used in the Excel file?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 11:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305632#M65209</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-19T11:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305644#M65210</link>
      <description>&lt;P&gt;If your SAS server cannot be changed to UTF-8 (which is more than likely what you need) you may introduce a second SAS server living alongside it. This assumes a datamanagement basic or advanced configuration where you have a logical server context (by default named SASApp) in the metadata. If that's the case (again, I am assuming), create another server context using deployment wizard, e.g. appropriately named SASUTF, that starts SAS unicode server processes. This way you can choose to use that server where othwers can continue to use their Latin servers as usual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code attempts to set the encoding by using the LOCALE option. This is however not enough. locale is about language / culture dependend presentation of dates, numbers etc. It will not affect the session encoding. This can only be done at SAS invocation time. There is a &lt;A href="http://support.sas.com/documentation/onlinedoc/nls/" target="_self"&gt;SAS NLS homepage&lt;/A&gt; in the support site for lots of detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not have the setup as I suggested you can always start a SAS session by using the appropriate start script in the SASROOT/bin/ directory. Look for something like sas_u8 or sas_dbcs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all in ignorance about your the details of your technical environment (O/S, SAS client, licensed products). Please elaborate on this if you want to have more guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 12:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305644#M65210</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-10-19T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305687#M65228</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn﻿&lt;/a&gt;:&amp;nbsp;I have these statements to invoke sas in my tcpunix.scr file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;type 'sas -dmr -comamid tcp -device 
       -noterminal -nosyntaxcheck' LF;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, I am using SAS 9.3 installed on the unix server. How should I invoke SAS with dbcs support using the above statement. Is it feasible this way? Please enlighten.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305687#M65228</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-10-19T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305695#M65231</link>
      <description>&lt;P&gt;I don't think that you can use SAS/Connect to connect sessions that use different encodings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you could try adding the -encoding setting to the command that starts SAS. &amp;nbsp;or add a -config setting that points to a system level SAS config file that your SAS administrator has setup to launch SAS using UTF-8 encoding.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305695#M65231</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-10-19T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305774#M65267</link>
      <description>&lt;P&gt;We are also working with Chinese characters and it is definitely trial and error.&amp;nbsp; I've attached a document that we used ... maybe it will help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 20:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305774#M65267</guid>
      <dc:creator>acairns</dc:creator>
      <dc:date>2016-10-19T20:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read chinese characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305902#M65326</link>
      <description>&lt;P&gt;XLS engine is not support for Chinese/Japanese character.&lt;/P&gt;
&lt;P&gt;Try XLSX or EXCEL engine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbms=excel&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbms=xlsx&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-chinese-characters/m-p/305902#M65326</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-20T10:29:59Z</dc:date>
    </item>
  </channel>
</rss>

