<?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: Reading Thai characters from a text file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616109#M180313</link>
    <description>&lt;P&gt;Thanks for your reply. I am using SAS Enterprise Guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what to change in language settings. can you please guide?&lt;/P&gt;&lt;P&gt;In SAS EG settings it says:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display Language: English - English&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server Session Locale : Use the Enterprise Guide Display Language&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 05:47:05 GMT</pubDate>
    <dc:creator>jitinsethi07</dc:creator>
    <dc:date>2020-01-09T05:47:05Z</dc:date>
    <item>
      <title>Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616102#M180311</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read a text file containing english, numbers and Thai characters in it. I tried using the locale = th_Th option but it doesn't seem to be working. I am getting&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;à¸«à¸™à¸±à¸‡à¸‹à¸­à¸‡ 3 à¸Šà¸´à¹‰à¸™ 100 à¹&amp;#129;à¸¥à¸°&lt;/U&gt;&lt;/STRONG&gt; in output dataset. I need to read thai characters correctly as well along with others. Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options locale = th_TH;&lt;BR /&gt;proc import datafile = filej&lt;BR /&gt;out = test&lt;BR /&gt;dbms = dlm&lt;BR /&gt;replace;&lt;BR /&gt;delimiter = '|';&lt;BR /&gt;getnames= yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jitin Sethi&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 04:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616102#M180311</guid>
      <dc:creator>jitinsethi07</dc:creator>
      <dc:date>2020-01-09T04:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616108#M180312</link>
      <description>&lt;P&gt;What SAS interface are you using? If it is the SAS Windowing System, then this SAS note may help: &lt;A href="http://support.sas.com/kb/20/581.html" target="_blank"&gt;http://support.sas.com/kb/20/581.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or for Enterprise Guide: &lt;A href="http://support.sas.com/kb/16/683.html" target="_blank"&gt;http://support.sas.com/kb/16/683.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The National Language Support Guide: &lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p0wqfkbuw8h0qan1hzcvt8rs3f63.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p0wqfkbuw8h0qan1hzcvt8rs3f63.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 05:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616108#M180312</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-09T05:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616109#M180313</link>
      <description>&lt;P&gt;Thanks for your reply. I am using SAS Enterprise Guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what to change in language settings. can you please guide?&lt;/P&gt;&lt;P&gt;In SAS EG settings it says:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display Language: English - English&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server Session Locale : Use the Enterprise Guide Display Language&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 05:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616109#M180313</guid>
      <dc:creator>jitinsethi07</dc:creator>
      <dc:date>2020-01-09T05:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616111#M180314</link>
      <description>&lt;P&gt;What's your current locale and encoding settings for the SAS Session?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, have you tried with UTF-8 encoding sesion?&lt;BR /&gt;Because, UTF-8 mostly handles all languages without any trouble.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616111#M180314</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-09T06:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616114#M180315</link>
      <description>&lt;P&gt;Thanks for your reply Kalind.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, agree with you, however, when I tried UTF-8 encoding, it removes all the thai characters and loads the file only with &lt;U&gt;&lt;STRONG&gt;english characters and numbers&lt;/STRONG&gt;&lt;/U&gt; in the columns.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616114#M180315</guid>
      <dc:creator>jitinsethi07</dc:creator>
      <dc:date>2020-01-09T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616119#M180317</link>
      <description>&lt;P&gt;Are you able to execute this command and can read thai data in UTF-8 session? If not then share the log output.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc options option=locale;run;

options locale=th_TH;
data;
infile datalines;
input test $30.;
datalines;
ดเวลาพักเที่
;;;;
run;

Proc options option=encoding;run;
Proc options option=locale;run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, Are you getting any warnings in Log window when you try to import this file ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616119#M180317</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-09T06:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616125#M180321</link>
      <description>&lt;P&gt;If I run your program as it is, it spits out 'attached' error message:&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;Proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;options&lt;/SPAN&gt; option&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;locale&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;options&lt;/SPAN&gt; locale&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;th_TH&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; datalines&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; test &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;30&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token keyword"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt;ดเวลาพักเที่&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I run below code, where filej is my reference file from server location, there is no error but loads data with special character like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VCD à¸«à¸™à¸±à¸‡ 3 à¸Šà¸´à¹‰à¸™ 100 à¹&amp;#129;à¸¥à¸° à¸&amp;#129;à&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc options option=locale;run;&lt;BR /&gt;options locale=th_TH;&lt;/P&gt;&lt;P&gt;proc import datafile = filej&lt;BR /&gt;out = test&lt;BR /&gt;dbms = dlm&lt;BR /&gt;replace;&lt;BR /&gt;delimiter = '|';&lt;BR /&gt;getnames= yes;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616125#M180321</guid>
      <dc:creator>jitinsethi07</dc:creator>
      <dc:date>2020-01-09T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616132#M180324</link>
      <description>&lt;P&gt;Your workspace server session does not use UTF-8 encoding, but LATIN1. Since the session encoding needs to be set at session startup, you need to change (or have changed) the workspace server configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616132#M180324</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-09T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Thai characters from a text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616382#M180442</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126868"&gt;@jitinsethi07&lt;/a&gt;&amp;nbsp; - I think you will need to install National Language Support for EG, before configuring. You can do that just by re-installing EG.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 05:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Thai-characters-from-a-text-file/m-p/616382#M180442</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-10T05:21:53Z</dc:date>
    </item>
  </channel>
</rss>

