<?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: Symbol conversion to special character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454605#M114897</link>
    <description>&lt;P&gt;So many answers already on the web.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/9773995/bad-encoding-why-does-my-medium-sized-dash-is-differently-encoded-on-another-se" target="_blank"&gt;https://stackoverflow.com/questions/9773995/bad-encoding-why-does-my-medium-sized-dash-is-differently-encoded-on-another-se&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.teradata.com/t5/Database/Seeing-Junk-character-when-inserting-hyphen/td-p/27271" target="_blank"&gt;http://community.teradata.com/t5/Database/Seeing-Junk-character-when-inserting-hyphen/td-p/27271&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the second link: "That combination of characters is the 3-byte UTF-8 representation of EN DASH U+2013, misinterpreted as Windows-1252. In short, you are loading UTF-8 data using ASCII as the session character set."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;said, you are mixing encodings.&lt;/P&gt;
&lt;P&gt;Either you match the encodings of your Oracle data and your SAS data, or more likely you just clean your SAS strings to remove any non-latin characters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work, I can't test as my session is WLATIN1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;STR=prxchange('s/[^[:ascii:]]/ /', -1, STR );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 00:14:25 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-04-17T00:14:25Z</dc:date>
    <item>
      <title>Symbol conversion to special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454488#M114870</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The given string "&lt;FONT face="arial black,avant garde"&gt;INFECTIONS -TUBO - NEW OR WORSENING&lt;/FONT&gt;" was converted automatically into "&lt;FONT face="arial black,avant garde" color="#000000"&gt;INFECTIONS -TUBO Â€“ NEW OR WORSENING&lt;/FONT&gt;" while connecting SAS to Oracle database. In SAS datasets it is showing right "&lt;FONT face="arial black,avant garde"&gt;&lt;SPAN&gt;INFECTIONS -TUBO - NEW OR WORSENING&lt;/SPAN&gt;&lt;/FONT&gt;" and in oracle table it is sowing "&lt;FONT face="arial black,avant garde"&gt;INFECTIONS -TUBO Â€“ NEW OR WORSENING&lt;/FONT&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest how to prevent such type of conversion ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance !!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454488#M114870</guid>
      <dc:creator>singhsahab</dc:creator>
      <dc:date>2018-04-16T15:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol conversion to special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454494#M114872</link>
      <description>&lt;P&gt;Use a $hex. format, so you can see what is actually stored. Your second hyphen is most probably not a standard hyphen, but a UTF character.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454494#M114872</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-16T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol conversion to special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454605#M114897</link>
      <description>&lt;P&gt;So many answers already on the web.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/9773995/bad-encoding-why-does-my-medium-sized-dash-is-differently-encoded-on-another-se" target="_blank"&gt;https://stackoverflow.com/questions/9773995/bad-encoding-why-does-my-medium-sized-dash-is-differently-encoded-on-another-se&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.teradata.com/t5/Database/Seeing-Junk-character-when-inserting-hyphen/td-p/27271" target="_blank"&gt;http://community.teradata.com/t5/Database/Seeing-Junk-character-when-inserting-hyphen/td-p/27271&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the second link: "That combination of characters is the 3-byte UTF-8 representation of EN DASH U+2013, misinterpreted as Windows-1252. In short, you are loading UTF-8 data using ASCII as the session character set."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;said, you are mixing encodings.&lt;/P&gt;
&lt;P&gt;Either you match the encodings of your Oracle data and your SAS data, or more likely you just clean your SAS strings to remove any non-latin characters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work, I can't test as my session is WLATIN1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;STR=prxchange('s/[^[:ascii:]]/ /', -1, STR );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 00:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symbol-conversion-to-special-character/m-p/454605#M114897</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-17T00:14:25Z</dc:date>
    </item>
  </channel>
</rss>

