<?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: How to resolve unicode in a data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577482#M163627</link>
    <description>&lt;P&gt;Not sure if there is a way to use the same syntax as the TITLE statement uses.&lt;/P&gt;
&lt;P&gt;But you can use a number of ways to enter unicode characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  test='age ≥ 61';
  output;
  test='age ' || 'E289A5'x || ' 61';
  output;
  test=unicode('age \u2265 61');
  output;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 145px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31389i4127C15DE558DBBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 18:29:14 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-29T18:29:14Z</dc:date>
    <item>
      <title>How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577457#M163626</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my input dataset for a graph&amp;nbsp; has&amp;nbsp; following&amp;nbsp; values.&amp;nbsp; I used&amp;nbsp;ods escapechar='~'; .&amp;nbsp; The title statement and foot note are shown&amp;nbsp; below.&amp;nbsp; The unicode in footnote and title are resolved to&amp;nbsp;≥ as needed.&amp;nbsp; But the dataset variable "&lt;FONT color="#FF9900"&gt;value&lt;/FONT&gt;" unicode is not resolved. Please suggest. Thank you.&lt;/P&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;
&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value&lt;BR /&gt;1 ~{unicode 2265} 65 years&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1&amp;nbsp; &amp;nbsp;age ~{unicode 2265} 61&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;footnote1&amp;nbsp; &amp;nbsp; age~{unicode 2265} 61&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577457#M163626</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2019-07-29T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577482#M163627</link>
      <description>&lt;P&gt;Not sure if there is a way to use the same syntax as the TITLE statement uses.&lt;/P&gt;
&lt;P&gt;But you can use a number of ways to enter unicode characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  test='age ≥ 61';
  output;
  test='age ' || 'E289A5'x || ' 61';
  output;
  test=unicode('age \u2265 61');
  output;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 145px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31389i4127C15DE558DBBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577482#M163627</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-29T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577485#M163628</link>
      <description>&lt;P&gt;Hi TOM,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help. how did you you the output your are showing.&amp;nbsp; i&amp;nbsp; am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Report: Detailed and/or summarized report" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;age = 61&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577485#M163628</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2019-07-29T18:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577492#M163631</link>
      <description>&lt;P&gt;Is your SAS session running with utf-8 encoding? Do a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look for ENCODING in the log.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577492#M163631</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-29T19:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577493#M163632</link>
      <description>&lt;P&gt;Thank you for your time. I think it is utf-8 encoding.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;URLENCODING=SESSION&lt;BR /&gt;Specifies whether the argument to the&lt;BR /&gt;URLENCODE function and to the URLDECODE&lt;BR /&gt;function is interpreted using the SAS&lt;BR /&gt;session encoding or UTF-8 encoding.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577493#M163632</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2019-07-29T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577496#M163634</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used this&amp;nbsp;"~{unicode '2265'x}"&amp;nbsp; &amp;nbsp; it resolved. i got the output i need. Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577496#M163634</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2019-07-29T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve unicode in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577499#M163635</link>
      <description>&lt;P&gt;That doesn't get the unicode into the variable, but it does show it on the output.&lt;/P&gt;
&lt;P&gt;Make sure to make the variable long enough since instead of the simple 3 bytes needed for that unicode character you will need to store the all of those other characters instead. The ~ (tilda) and the curly brackets&amp;nbsp; and the string &lt;STRONG&gt;unicode&lt;/STRONG&gt; and the digits &lt;STRONG&gt;2265&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  length test $80;
  test='age ≥ 61';
  output;
  test='age ' || 'E289A5'x || ' 61';
  output;
  test=unicode('age \u2265 61');
  output;
  test="age ~{unicode 2265} 61";
  output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-unicode-in-a-data-set/m-p/577499#M163635</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-29T20:04:08Z</dc:date>
    </item>
  </channel>
</rss>

