<?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: Sending email while SAS is in utf-8 encoding 9.4(unicode support) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/828231#M327163</link>
    <description>Does the info in this thread &lt;A href="https://communities.sas.com/t5/SAS-Programming/How-sending-csv-file-as-attachment-from-sas-in-utf-8-encoding/td-p/554245" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-sending-csv-file-as-attachment-from-sas-in-utf-8-encoding/td-p/554245&lt;/A&gt; help?</description>
    <pubDate>Thu, 11 Aug 2022 09:41:41 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2022-08-11T09:41:41Z</dc:date>
    <item>
      <title>Sending email while SAS is in utf-8 encoding 9.4(unicode support)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/827716#M326954</link>
      <description>&lt;P&gt;I have created a new program that collects a JSON file from the facebook API.&lt;/P&gt;&lt;P&gt;Because facebook allows foreign utf-8 symbols I was unable to use the JSON engine to parse the file. To solve this I run SAS with unicode support. This all works now but my email notification that sends at the end of the program will not work in this utf-8 mode.&lt;/P&gt;&lt;P&gt;What do i have to do to send an email while in the utf-8 encoding? do i have to use an encoding statement somewhere?&lt;/P&gt;&lt;PRE&gt;*This is the send code -Works in regular sas but does not work while in utf-8 mode:;
ods listing close;
ods noptitle;
ods msoffice2k file=outbox1 style=sapphire;
ods escapechar='^';
title1 "&amp;amp;pdate Facebook Lead Ads Daily Update^n
^n
.";
proc odstext;
   p "--The Facebook Lead Ads Data Update has Completed";
   p " ";
   p "There were ^{style[textdecoration=underline color=red fontweight=bold] &amp;amp;AddedRecords } added to the table Today.";
   p " ";
   p "Reporting Available Here--- ";
   p '&amp;lt;a href=  linkaddresshere.xlsx&amp;gt;SharePoint FB_LeadAds Report&amp;lt;/a&amp;gt; ';
   p '&amp;lt;a href=linkaddresshere&amp;gt;DataStudio Subscriptions Report&amp;lt;/a&amp;gt; ';
   
run;
title;
ods msoffice2k close;
ods listing;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 21:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/827716#M326954</guid>
      <dc:creator>nelsonc</dc:creator>
      <dc:date>2022-08-08T21:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email while SAS is in utf-8 encoding 9.4(unicode support)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/828231#M327163</link>
      <description>Does the info in this thread &lt;A href="https://communities.sas.com/t5/SAS-Programming/How-sending-csv-file-as-attachment-from-sas-in-utf-8-encoding/td-p/554245" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-sending-csv-file-as-attachment-from-sas-in-utf-8-encoding/td-p/554245&lt;/A&gt; help?</description>
      <pubDate>Thu, 11 Aug 2022 09:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/828231#M327163</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-08-11T09:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email while SAS is in utf-8 encoding 9.4(unicode support)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/828480#M327260</link>
      <description>&lt;P&gt;I ended up just splitting the program into two parts that run from bat.&lt;/P&gt;&lt;P&gt;The first part runs the API calls and collects and stores the data, i run this with the&amp;nbsp;&amp;nbsp;-CONFIG "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg" option.&lt;/P&gt;&lt;P&gt;Then the second part runs the email notification and runs with the standard config.&lt;/P&gt;&lt;P&gt;There was probably a more elegant solution but I was pressed for time.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-while-SAS-is-in-utf-8-encoding-9-4-unicode-support/m-p/828480#M327260</guid>
      <dc:creator>nelsonc</dc:creator>
      <dc:date>2022-08-12T15:16:06Z</dc:date>
    </item>
  </channel>
</rss>

