<?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 Write a file in UTF-8 without BOM in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561069#M157015</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code to write a text file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
SET HAVE;
FILE 'pathofthefile/nameofthefile.txt' encoding="utf-8";
IF =_N_=1 THEN PUT 'TITLE OF THE FILE';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I check with notepad++ that the file is encoding in UTF-8 with BOM.&lt;/P&gt;&lt;P&gt;I need it to be encode in UTF-8 without BOM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do know if it exists any option to achieve that .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 08:15:29 GMT</pubDate>
    <dc:creator>Hugo_B</dc:creator>
    <dc:date>2019-05-23T08:15:29Z</dc:date>
    <item>
      <title>Write a file in UTF-8 without BOM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561069#M157015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code to write a text file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
SET HAVE;
FILE 'pathofthefile/nameofthefile.txt' encoding="utf-8";
IF =_N_=1 THEN PUT 'TITLE OF THE FILE';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I check with notepad++ that the file is encoding in UTF-8 with BOM.&lt;/P&gt;&lt;P&gt;I need it to be encode in UTF-8 without BOM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do know if it exists any option to achieve that .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 08:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561069#M157015</guid>
      <dc:creator>Hugo_B</dc:creator>
      <dc:date>2019-05-23T08:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Write a file in UTF-8 without BOM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561094#M157023</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272343"&gt;@Hugo_B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the following before your data _null_ step:&lt;/P&gt;
&lt;PRE&gt;options nobomfile ;&lt;/PRE&gt;
&lt;P&gt;Found here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/How-to-Remove-BOM-from-SAS-Output-in-csv/td-p/207476" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/How-to-Remove-BOM-from-SAS-Output-in-csv/td-p/207476&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 11:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561094#M157023</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-23T11:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Write a file in UTF-8 without BOM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561117#M157029</link>
      <description>&lt;P&gt;Great It worked. Thank you Patrick.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 12:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-file-in-UTF-8-without-BOM/m-p/561117#M157029</guid>
      <dc:creator>Hugo_B</dc:creator>
      <dc:date>2019-05-23T12:31:22Z</dc:date>
    </item>
  </channel>
</rss>

