<?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: Saving SAS data having Unicode characters to R using IML gives ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805603#M317350</link>
    <description>&lt;P&gt;What is the encoding from the R session that PROC IML created?&lt;/P&gt;
&lt;P&gt;Run this function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Sys.getlocale()&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 02 Apr 2022 03:16:05 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-04-02T03:16:05Z</dc:date>
    <item>
      <title>Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804170#M316644</link>
      <description>&lt;P&gt;I am trying to save a SAS dataset having Unicode characters using R and IML in the RData format using R's save command, and am getting the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: SAS is unable to transcode character data to the R encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program runs OK if the dataset does not have any Unicode character. I am using SAS with Unicode support to run the program. Any tips to resolve this will be really appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 19:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804170#M316644</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-25T19:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804191#M316651</link>
      <description>&lt;P&gt;It may help a lot to show the code that generates the error and indicate which variables hold values that may include Unicode characters. Better is to include the code along with the notes and messages from the log. Copy the log with the code and all messages and paste into a text box opened on the forum with the &amp;lt;/&amp;gt; icon above the message window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best would be to provide example data along with the code so someone with experience can actually test possible solutions. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 22:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804191#M316651</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-25T22:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804203#M316661</link>
      <description>&lt;P&gt;I suspect you are going to have to align your SAS session encoding with R's encoding or vice versa. You can confirm what your SAS session encoding is by running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option = encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please post your SAS log from the above.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 00:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804203#M316661</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-26T00:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804204#M316662</link>
      <description>&lt;P&gt;Here are two minimal examples, the first one works and the second one does not:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*** WORKS;
data tab1;
    input symbol $;
    datalines;
	+
;
run;

proc iml;
    run ExportDataSetToR("tab1", "tab1");
    submit / R;
	  print(tab1)
	endsubmit;
quit;

*** DOES NOT WORK;
data tab2;
    input symbol $;
    datalines;
	≤
;
run;

proc iml;
    run ExportDataSetToR("tab2", "tab2");    
    submit / R;
	  print(tab2)
	endsubmit;
quit;&lt;/PRE&gt;&lt;P&gt;I get the following error on running the second piece of code:&lt;/P&gt;&lt;PRE&gt;NOTE: IML Ready
126      run ExportDataSetToR("tab2", "tab2");
ERROR: SAS is unable to transcode character data to the R encoding.
ERROR: Unable to export data.
ERROR: Execution error as noted previously. (rc=1000)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 01:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804204#M316662</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-26T01:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804205#M316663</link>
      <description>&lt;P&gt;Added a minimal example to reproduce the error.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 01:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804205#M316663</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-26T01:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804206#M316664</link>
      <description>Added a minimal example to reproduce the error.</description>
      <pubDate>Sat, 26 Mar 2022 01:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804206#M316664</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-26T01:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804207#M316665</link>
      <description>&lt;P&gt;This is the encoding for my SAS session:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;132  proc options option = encoding;
133  run;
SAS (r) Proprietary Software Release 9.4  TS1M6
ENCODING=UTF-8    Specifies the default character-set encoding for the SAS session.&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Mar 2022 01:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804207#M316665</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-26T01:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804208#M316666</link>
      <description>added encoding output</description>
      <pubDate>Sat, 26 Mar 2022 01:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/804208#M316666</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-03-26T01:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805596#M317345</link>
      <description>&lt;P&gt;Any help with this issue ? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 23:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805596#M317345</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-04-01T23:51:08Z</dc:date>
    </item>
    <item>
      <title>Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805599#M317348</link>
      <description>&lt;P&gt;I am trying to save a SAS dataset having Unicode characters using R and IML in the RData format using R's save command, and am getting the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: SAS is unable to transcode character data to the R encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program runs OK if the dataset does not have any Unicode character. I am using SAS with Unicode support to run the program. Any tips to resolve this will be really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sample code to reproduce the error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;*** WORKS;
data tab1;
    input symbol $;
    datalines;
	+
;
run;

proc iml;
    run ExportDataSetToR("tab1", "tab1");
    submit / R;
	  print(tab1)
	endsubmit;
quit;

*** DOES NOT WORK;
data tab2;
    input symbol $;
    datalines;
	≤
;
run;

proc iml;
    run ExportDataSetToR("tab2", "tab2");    
    submit / R;
	  print(tab2)
	endsubmit;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This is the encoding for my SAS session:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;132  proc options option = encoding;
133  run;
SAS (r) Proprietary Software Release 9.4  TS1M6
ENCODING=UTF-8    Specifies the default character-set encoding for the SAS session.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help will be really appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 00:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805599#M317348</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-04-02T00:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805600#M317346</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;already mentioned the likely issue here is that your R session doesn't match the SAS session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the SAS session being UTF-8 a likely resolution (to be tested) could be:&lt;/P&gt;
&lt;PRE&gt;export LANG=en_US.UTF-8 set in the appropriate config file .cfg
sasenv_local is also possible.&lt;/PRE&gt;
&lt;P&gt;This is something a SAS admin at your site would need to configure.&lt;/P&gt;
&lt;P&gt;I do know that above was the resolution for someone who encountered the same error message than you.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 00:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805600#M317346</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-02T00:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805601#M317347</link>
      <description>&lt;P&gt;I suggest you Google R language encoding and check out the links provided. I did and found a number of helpful links. However I'm not an R user so there is no point in me trying to pass on secondhand information, when you can more easily figure out what might be useful or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively open a track with SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 00:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805601#M317347</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-02T00:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805603#M317350</link>
      <description>&lt;P&gt;What is the encoding from the R session that PROC IML created?&lt;/P&gt;
&lt;P&gt;Run this function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Sys.getlocale()&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Apr 2022 03:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805603#M317350</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-02T03:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805604#M317351</link>
      <description>&lt;P&gt;I am on Windows and get this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 03:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805604#M317351</guid>
      <dc:creator>sasuser92</dc:creator>
      <dc:date>2022-04-02T03:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805605#M317352</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420929"&gt;@sasuser92&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am on Windows and get this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you need to scrub your SAS datasets of any characters that do not fit into codepage 1252 (also known as WLATIN1 or LATIN1).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
*----------------------------------------------------------------------------;
* Convert any UTF-8 character not in LATIN1 codepage to HTML encoded strings ;
*----------------------------------------------------------------------------;
  array _character_ _character_;
  do over _character_;
    do until(_n_=0);
      _n_=kverify(_character_,collate(0,127)||kcvt(collate(128,255),'latin1','utf-8'));
      if _n_ then _character_=tranwrd(_character_,ksubstr(_character_,_n_,1)
                  ,htmlencode(ksubstr(_character_,_n_,1),'7bit'))
      ;
    end;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note you might have to make your character variables longer.&lt;/P&gt;
&lt;P&gt;You might also need to do something about characters in variable labels.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 03:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/805605#M317352</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-02T03:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Saving SAS data having Unicode characters to R using IML gives ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/979655#M378833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420929"&gt;@sasuser92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like I get to this topic is a little bit late.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I faced similar issue recently. My session setup is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1    proc options option=RLANG;
2    run;

    SAS (r) Proprietary Software Release 9.4  TS1M9

 RLANG             Enables SAS to execute R language statements.
NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


3
4    %put &amp;amp;=sysencoding. &amp;amp;sysvlong4.;
SYSENCODING=utf-8 9.04.01M9P06042025
5    options set=R_HOME="X:/R/R-4.5.2/";
6    PROC IML;
NOTE: Writing HTML Body file: sashtml.htm
NOTE: IML Ready
7      submit / R;
8      sessionInfo()
9      endsubmit;
10   QUIT;
NOTE: Exiting IML.
NOTE: PROCEDURE IML used (Total process time):
      real time           0.25 seconds
      cpu time            0.03 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the sessionInfo() returns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_0-1764234317553.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111609iDF6635598943F416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_0-1764234317553.png" alt="yabwon_0-1764234317553.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the "default" settings&amp;nbsp;as above when I run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input symbol $ 9.;
datalines;
空手道
;
run;

proc iml;
    run ExportDataSetToR("test", "test");    
    submit / R;
	  print(test)
	endsubmit;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_2-1764234536120.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111611iEA1C053FF0EC1CD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_2-1764234536120.png" alt="yabwon_2-1764234536120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I've edited the Rprofile file (in my case located in X:\R\R-4.5.2\etc\Rprofile.site) and added:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Sys.setlocale("LC_ALL","en_US.utf8")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The transcoding error dissipated and text was printed:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_3-1764234703271.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111612i23E698AABBE103ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_3-1764234703271.png" alt="yabwon_3-1764234703271.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately SAS also started printing this strange warning in the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_4-1764234751887.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111613i1D02A31AD068872B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_4-1764234751887.png" alt="yabwon_4-1764234751887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;also the "locale" part from the sessionInfo() has this strange text:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_5-1764234807290.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111614i9840AAC417F26491/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_5-1764234807290.png" alt="yabwon_5-1764234807290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like SAS (when calling R under Windows) assumes 1252 encoding, and even when Rprofile sets it differently, SAS does not respect that??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps a little bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 09:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-SAS-data-having-Unicode-characters-to-R-using-IML-gives/m-p/979655#M378833</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2025-11-27T09:15:23Z</dc:date>
    </item>
  </channel>
</rss>

