<?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: Transcoding of texte in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670771#M201399</link>
    <description>&lt;P&gt;Then try adding option encoding=WLATIN1 to your infile statement.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 19:32:27 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-07-20T19:32:27Z</dc:date>
    <item>
      <title>Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670587#M201338</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my data file csv&amp;nbsp; have a lote of&amp;nbsp; "â€™", I need to replace it just by " ' ".&lt;/P&gt;
&lt;P&gt;I import my row data file with infile statement (infile "&amp;amp;Rep_Travail\xxxx.csv" dsd truncover lrecl=32767 encoding=wlatin2) and I get the table donne.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data donnee_bis;&lt;BR /&gt;set donne;&lt;BR /&gt;var3_correct=tranwrd(var3,"â€™","'");&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the error that SAS "Failed to transcode data from U_UTF8_CE to LATIN_9_CE......."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I put already the options locale=FR before the infile. Maybe I need to change encoding option in infile statement?&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 10:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670587#M201338</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-20T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670723#M201384</link>
      <description>&lt;P&gt;The data is attached.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670723#M201384</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-20T16:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670735#M201389</link>
      <description>&lt;P&gt;If your csv file was exported from an Excel workbook, you could correct the problem in Excel at the export step. In the export dialog, choose Tools - Web Options - Encoding -&amp;gt; Unicode (UTF-8)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670735#M201389</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-20T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670747#M201396</link>
      <description>Thank you for your suggestion.&lt;BR /&gt;I'm receiving this file, I need to correct it automatically, not manually.</description>
      <pubDate>Mon, 20 Jul 2020 18:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670747#M201396</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-20T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670771#M201399</link>
      <description>&lt;P&gt;Then try adding option encoding=WLATIN1 to your infile statement.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 19:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670771#M201399</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-20T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670783#M201404</link>
      <description>It doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Mon, 20 Jul 2020 19:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670783#M201404</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-20T19:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670808#M201411</link>
      <description>&lt;P&gt;Maybe&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; can help. He understands this encoding stuff.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/670808#M201411</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-07-20T20:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transcoding of texte</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/671876#M201817</link>
      <description>I mean that I import the file with encoding=wlatin1, but I still need to correct the values like :&lt;BR /&gt;VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"Ã©","é");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"ÃŽ","ô");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"Ãª&amp;#159;","ê");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"Ã§&amp;#159;","ç");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"Ã¢","â");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"â€","'");&lt;BR /&gt;			VAR&amp;amp;i.=tranwrd(VAR&amp;amp;i.,"Ã","à");&lt;BR /&gt;Maybe, there is some function as in this example (it doesn't work in my case &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;data gg; g="Général";&lt;BR /&gt;g1=PUT(g,$UTF8x2000.);&lt;BR /&gt;g2=INPUT(g1,$UTF8x2000.);&lt;BR /&gt;run;&lt;BR /&gt;Obs g g1 g2&lt;BR /&gt;&lt;BR /&gt;1 Général GÃ©nÃ©ral Général&lt;BR /&gt;&lt;BR /&gt;I mean that with a step like that I don't need to use a lot of tranwrd functions, but I still can't found a combination of formats for my case...&lt;BR /&gt;&lt;BR /&gt;Thank you very much!</description>
      <pubDate>Thu, 23 Jul 2020 16:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transcoding-of-texte/m-p/671876#M201817</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-23T16:26:59Z</dc:date>
    </item>
  </channel>
</rss>

