<?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: Can write out ó or ø but it's read in as Ã³ or Ã¸ in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649316#M19233</link>
    <description>&lt;P&gt;Thanks, that wouldn't have occurred to me, I checked the encoding with Notepad++ and forced it to UTF-8 and it reads in fine now, it seems SAS (or ours, defaults to DOS as the encoding). Only small issue is if you alter the file, it changes the encoding then trying to read it results in a fatal error. That should be ok though as people shouldn't be altering the files manually.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 17:43:45 GMT</pubDate>
    <dc:creator>MRDM</dc:creator>
    <dc:date>2020-05-20T17:43:45Z</dc:date>
    <item>
      <title>Can write out ó or ø but it's read in as Ã³ or Ã¸</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649302#M19231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm writing out a delimited file and one of the fields contains the value&amp;nbsp;ó, however when I read the file back in it's being read in as&amp;nbsp;Ã³, I've also tried ø which comes in as&amp;nbsp;Ã¸ any ideas? Simplified code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data &amp;amp;_OUTPUT.;
	length UNIQUE_REFERENCE $250.;
infile "&amp;amp;filename." dlm=',' dsd eov=eov truncover firstobs=2;
input UNIQUE_REFERENCE $;
eov=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Data is basically&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ID56453óHELPME&lt;/PRE&gt;
&lt;P&gt;It's reading everything in correctly except that character.&lt;BR /&gt;Essentially my issue is that I need to concatenate two ID fields into the&amp;nbsp;UNIQUE_REFERENCE field,&amp;nbsp;it's&amp;nbsp;then&amp;nbsp;sent&amp;nbsp;off&amp;nbsp;to another&amp;nbsp;system&amp;nbsp;(with&amp;nbsp;loads&amp;nbsp;of&amp;nbsp;other&amp;nbsp;fields)&amp;nbsp;that&amp;nbsp;does&amp;nbsp;some&amp;nbsp;stuff&amp;nbsp;then&amp;nbsp;sends&amp;nbsp;me&amp;nbsp;it&amp;nbsp;back,&amp;nbsp;I&amp;nbsp;then&amp;nbsp;split&amp;nbsp;my&amp;nbsp;UNIQUE_REFERENCE back into my two ID fields. The lengths can vary so I can't use a scan or anything like that, the other system also strips out any special characters which limits my option for a delimiter. I also can't use anything common that might appear in a user entered ID. That leaves me with limited options,&amp;nbsp;&amp;nbsp;ó and&amp;nbsp;ø is an example of a character that it can pass back to me, unfortunately it seems SAS can happily write that out to a file, but reading it in it is converting it to&amp;nbsp;Ã³ and Ã¸ using the code above, any ideas? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649302#M19231</guid>
      <dc:creator>MRDM</dc:creator>
      <dc:date>2020-05-20T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can write out ó or ø but it's read in as Ã³ or Ã¸</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649310#M19232</link>
      <description>&lt;P&gt;Check the encoding of the file -- and &lt;A href="https://go.documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=n0utx4w7x4exijn1wt7pk0srrxz5.htm&amp;amp;docsetVersion=1.0&amp;amp;locale=en" target="_self"&gt;add an&amp;nbsp;&lt;STRONG&gt;encoding=&lt;/STRONG&gt; option to your INFILE statement.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS session encoding might be different than your file encoding.&amp;nbsp; So an explicit encoding spec might help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649310#M19232</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-05-20T17:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can write out ó or ø but it's read in as Ã³ or Ã¸</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649316#M19233</link>
      <description>&lt;P&gt;Thanks, that wouldn't have occurred to me, I checked the encoding with Notepad++ and forced it to UTF-8 and it reads in fine now, it seems SAS (or ours, defaults to DOS as the encoding). Only small issue is if you alter the file, it changes the encoding then trying to read it results in a fatal error. That should be ok though as people shouldn't be altering the files manually.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Can-write-out-%C3%B3-or-%C3%B8-but-it-s-read-in-as-%C3%83-or-%C3%83/m-p/649316#M19233</guid>
      <dc:creator>MRDM</dc:creator>
      <dc:date>2020-05-20T17:43:45Z</dc:date>
    </item>
  </channel>
</rss>

