<?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: SGPLOT Unicode Axis 9.4M4 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398821#M13659</link>
    <description>&lt;P&gt;Unfortunately, the Unicode or other special characters in the data label itself will not get processed correctly.&amp;nbsp;&amp;nbsp;The string will just be displayed as is in the label.&amp;nbsp; So, you have to use the axis LABEL option to set a unicode string.&amp;nbsp; Now, formats can include special Unicode values which will be used when formatting individual data values.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 14:44:38 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-09-26T14:44:38Z</dc:date>
    <item>
      <title>SGPLOT Unicode Axis 9.4M4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398799#M13648</link>
      <description>&lt;P&gt;Struggling to get a unicode symbol for micro into an SGPLOT axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code works for the PROC PRINT, but the in the PROC SGPLOT (ODS HTML and ODS PDF) I get the unicode text:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
  set sashelp.class;
  label height="Height (*ESC*){unicode 00B5}m";
run;

proc print data=class label;
run;

proc sgplot data=class;
  scatter x=height y=weight;
  **xaxis label="Height (*ESC*){unicode 00B5}m" labelattrs=GraphUnicodeText;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So I tried hard-coding the label as a workaround, and added labelattrs=GraphUnicodeText, but then there was no symbol and no unicode text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought with labelattrs I shouldn't have to worry about finding a font that supports a specific character?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398799#M13648</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-09-26T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Unicode Axis 9.4M4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398800#M13649</link>
      <description>&lt;P&gt;proc sgplot data=sashelp.class;&lt;BR /&gt; scatter x=height y=weight;&lt;BR /&gt; xaxis label="Height (*ESC*){unicode '00B5'x}m" labelattrs=GraphUnicodeText;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398800#M13649</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-09-26T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Unicode Axis 9.4M4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398812#M13655</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;.&amp;nbsp; Is it&amp;nbsp;necessary to provide the label on the x-axis statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or should I be able to produce an axis label from a variable label with a unicode character?&amp;nbsp; I tried below, but doesn't work (I see the unicode text in the axis label rather than the micro symbol):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
  set sashelp.class;
  label height="Height (*ESC*){unicode '00B5'x}m";
run;

proc sgplot data=class;
  scatter x=height y=weight; 
  xaxis labelattrs=GraphUnicodeText;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398812#M13655</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-09-26T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Unicode Axis 9.4M4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398821#M13659</link>
      <description>&lt;P&gt;Unfortunately, the Unicode or other special characters in the data label itself will not get processed correctly.&amp;nbsp;&amp;nbsp;The string will just be displayed as is in the label.&amp;nbsp; So, you have to use the axis LABEL option to set a unicode string.&amp;nbsp; Now, formats can include special Unicode values which will be used when formatting individual data values.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398821#M13659</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-09-26T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Unicode Axis 9.4M4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398836#M13661</link>
      <description>&lt;P&gt;You should be able to just put the UTF-8 string into the label. &amp;nbsp;At least it works when using utf8 session encoding .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  label height="Height" 'CEBC6D'x ;
scatter x=height y=weight;
xaxis labelattrs=GraphUnicodeText;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that when you use multiple string literals in the LABEL statement then SAS will insert any spaces you have between the strings into the label. &amp;nbsp;Writing string literals right next to each other looks strange in the code so I included the ASCII code for lowercase m into the hexcodes rather than writing it like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  label height="Height "'CEBC'x'm' ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2017 15:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Unicode-Axis-9-4M4/m-p/398836#M13661</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-26T15:12:02Z</dc:date>
    </item>
  </channel>
</rss>

