<?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: Replace special characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698131#M213476</link>
    <description>Try Ktranslate()  as mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;</description>
    <pubDate>Wed, 11 Nov 2020 12:04:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-11T12:04:20Z</dc:date>
    <item>
      <title>Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698046#M213432</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why it is not working in my SAS. I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data exp;&lt;BR /&gt;x='Andrè';&lt;/P&gt;&lt;P&gt;A = 'ÀerÒ';&lt;BR /&gt;y=translate(x,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',&lt;BR /&gt;'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;z=translate(A,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',&lt;BR /&gt;'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;X = Andre&amp;nbsp;&lt;/P&gt;&lt;P&gt;A = Aero&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698046#M213432</guid>
      <dc:creator>anjankumar08</dc:creator>
      <dc:date>2020-11-11T01:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698047#M213433</link>
      <description>&lt;P&gt;It's working for me.&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.EXP" width="206px" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col" width="54px" height="19px"&gt;x&lt;/TH&gt;
&lt;TH class="l header" scope="col" width="49px" height="19px"&gt;A&lt;/TH&gt;
&lt;TH class="l header" scope="col" width="54px" height="19px"&gt;y&lt;/TH&gt;
&lt;TH class="l header" scope="col" width="49px" height="19px"&gt;z&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="54px" height="30px" class="l data"&gt;Andrè&lt;/TD&gt;
&lt;TD width="49px" height="30px" class="l data"&gt;ÀerÒ&lt;/TD&gt;
&lt;TD width="54px" height="30px" class="l data"&gt;Andre&lt;/TD&gt;
&lt;TD width="49px" height="30px" class="l data"&gt;AerO&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;What errors do you get?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What SAS version, OS and encoding are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698047#M213433</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-11T01:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698048#M213434</link>
      <description>&lt;P&gt;Also do &lt;STRONG&gt;not&lt;/STRONG&gt; post your program as text. Use the program icon.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698048#M213434</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-11T01:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698052#M213437</link>
      <description>&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data exp;&lt;BR /&gt;x='Andrè';&lt;/P&gt;&lt;P&gt;A = 'Àerò';&lt;/P&gt;&lt;P&gt;y=translate(x,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',&lt;BR /&gt;'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');&lt;/P&gt;&lt;P&gt;z=translate(A,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',&lt;BR /&gt;'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698052#M213437</guid>
      <dc:creator>anjankumar08</dc:creator>
      <dc:date>2020-11-11T01:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698054#M213438</link>
      <description>I'm using Windows 7 OS.&lt;BR /&gt;&lt;BR /&gt;NOTE: Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA.&lt;BR /&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M4)&lt;BR /&gt;Licensed to NOVARTIS PHARMA AG, Site 70110812.&lt;BR /&gt;NOTE: This session is executing on the W32_7PRO platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: Updated analytical products:&lt;BR /&gt;&lt;BR /&gt;SAS/STAT 14.2&lt;BR /&gt;SAS/ETS 14.2&lt;BR /&gt;SAS/OR 14.2&lt;BR /&gt;SAS/IML 14.2&lt;BR /&gt;SAS/QC 14.2&lt;BR /&gt;&lt;BR /&gt;NOTE: Additional host information:&lt;BR /&gt;&lt;BR /&gt;W32_7PRO WIN 6.1.7601 Service Pack 1 Workstation&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS initialization used:&lt;BR /&gt;real time 6.75 seconds&lt;BR /&gt;cpu time 0.98 seconds&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698054#M213438</guid>
      <dc:creator>anjankumar08</dc:creator>
      <dc:date>2020-11-11T01:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698059#M213439</link>
      <description>&lt;P&gt;Do &lt;STRONG&gt;not&lt;/STRONG&gt; post LOG as free text, Use the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;What errors to you get?&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;What encoding do you use? (run proc options).&lt;/P&gt;
&lt;PRE&gt;29         data exp;
30          A1='Andrè';
31          B1='Àerò';
32          A2=translate(A1,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',
33                          'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');
34          B2=translate(B1,'AAAAAAACEEEEIIIIDNOOOOO OUUUUY Saaaaaaaceeeeiiiidnooooo ouuuuy y',
35                          'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');
36          put A2= B2=;
37         run;

A2=Andre B2=Aero
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 02:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698059#M213439</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-11T02:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698067#M213446</link>
      <description>&lt;P&gt;Try using the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=nlsref&amp;amp;docsetTarget=p078j5y1bbc9xfn1scp11kw3nmnt.htm&amp;amp;locale=en" target="_self"&gt;BASECHAR&lt;/A&gt; function, without a second argument, it simply removes the accents :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y = basechar(x);&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 04:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698067#M213446</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-11-11T04:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replace special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698131#M213476</link>
      <description>Try Ktranslate()  as mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;</description>
      <pubDate>Wed, 11 Nov 2020 12:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-special-characters/m-p/698131#M213476</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-11T12:04:20Z</dc:date>
    </item>
  </channel>
</rss>

