<?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 Is there a SAS function that can return the UTF-16 (decimal) value of a character? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Is-there-a-SAS-function-that-can-return-the-UTF-16-decimal-value/m-p/389517#M9872</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to analize incoming text and get their related UTF values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example the character 'GREEK SMALL LETTER ALPHA' has the following UTF values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UTF-16 (hex) = 03b1&lt;/P&gt;
&lt;P&gt;UTF-16 (decimal) = 945&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to get these values for every incoming character. Does SAS have something that can provide this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Tiaan&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 13:32:37 GMT</pubDate>
    <dc:creator>Tiaan</dc:creator>
    <dc:date>2017-08-21T13:32:37Z</dc:date>
    <item>
      <title>Is there a SAS function that can return the UTF-16 (decimal) value of a character?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Is-there-a-SAS-function-that-can-return-the-UTF-16-decimal-value/m-p/389517#M9872</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to analize incoming text and get their related UTF values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example the character 'GREEK SMALL LETTER ALPHA' has the following UTF values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UTF-16 (hex) = 03b1&lt;/P&gt;
&lt;P&gt;UTF-16 (decimal) = 945&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to get these values for every incoming character. Does SAS have something that can provide this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Tiaan&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 13:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Is-there-a-SAS-function-that-can-return-the-UTF-16-decimal-value/m-p/389517#M9872</guid>
      <dc:creator>Tiaan</dc:creator>
      <dc:date>2017-08-21T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS function that can return the UTF-16 (decimal) value of a character?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Is-there-a-SAS-function-that-can-return-the-UTF-16-decimal-value/m-p/389595#M9873</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"Let me google that for you."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;A href="https://lmgtfy.com/&amp;nbsp;&amp;nbsp;" target="_blank"&gt;https://lmgtfy.com/&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$UCS2Lw. Format&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="refDictEntry"&gt;&lt;DIV class="details"&gt;&lt;FONT face="courier new,courier"&gt;Details&lt;/FONT&gt;&lt;DIV class="topicContent"&gt;&lt;DIV class="paragraph"&gt;&lt;FONT face="courier new,courier"&gt;The $UCS2L&lt;SPAN class="userSuppliedValue"&gt;w&lt;/SPAN&gt;. format writes a character string in little-endian, 16-bit, UCS2 (universal character set code in two octets), Unicode encoding. It processes character strings that are in the encoding of the current SAS session.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="comparisons"&gt;&lt;FONT face="courier new,courier"&gt;Comparisons&lt;/FONT&gt;&lt;DIV class="paragraph"&gt;&lt;FONT face="courier new,courier"&gt;The $UCS2L&lt;SPAN class="userSuppliedValue"&gt;w&lt;/SPAN&gt;. format performs processing that is the opposite of the $UCS2LE&lt;SPAN class="userSuppliedValue"&gt;w&lt;/SPAN&gt;. format.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="exampleBlock"&gt;&lt;FONT face="courier new,courier"&gt;Example&lt;/FONT&gt;&lt;DIV class="example"&gt;&lt;DIV class="paragraph"&gt;&lt;FONT face="courier new,courier"&gt;This example uses the Japanese Shift_JIS encoding, which is supported &lt;/FONT&gt;under&lt;FONT face="courier new,courier"&gt; the UNIX operating environment.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="table"&gt;&lt;DIV class="paraTableFirst"&gt;&lt;FONT face="courier new,courier"&gt;Statements&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="paraTableFirst"&gt;&lt;FONT face="courier new,courier"&gt;Result&lt;/FONT&gt;&lt;/DIV&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="paraTableFirst"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;----+----1&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="paraTableFirst"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;data_null;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="paraTable"&gt;&lt;FONT face="courier new,courier"&gt;&lt;CODE&gt;x =&lt;/CODE&gt; ' &lt;SPAN class="inlineGraphic"&gt;&lt;IMG src="https://communities.sas.com/images/uncrinfchar.png" alt="xxx" border="0" /&gt;&lt;/SPAN&gt;';&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="paraTable"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;y=put(x,$ucs2l2.);&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="paraTable"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;put y $hex.;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="paraTable"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="paraTableFirst"&gt;&lt;PRE class="codeFragment"&gt;&lt;FONT face="courier new,courier"&gt;2759&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="seeAlso"&gt;&lt;FONT face="courier new,courier"&gt;See Also&lt;/FONT&gt;&lt;DIV class="seeAlsoGroup"&gt;&lt;DIV class="groupNameFirst"&gt;&lt;FONT face="courier new,courier"&gt;Formats:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p0mns00ny7os9nn13hlz7a4tnjmy.htm" target="_blank"&gt;$UCS2Bw. Format&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p1atj1kb2o331cn12ofor1gky6w2.htm" target="_blank"&gt;$UCS2LEw. Format&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p0ns7d1w31u5ufn1fueaq5v4v6z4.htm" target="_blank"&gt;$UCS2Xw. Format&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/n1s1kfmcitm2y4n1uh08oyv4sizx.htm" target="_blank"&gt;$UTF8Xw. Format&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="seeAlsoGroup"&gt;&lt;DIV class="groupName"&gt;&lt;FONT face="courier new,courier"&gt;Informats:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p0i9uv8qqjl44rn1qvyt79851h9g.htm" target="_blank"&gt;$UCS2Bw. Informat&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/n15qbkz850bnivn1p2yow4dueb99.htm" target="_blank"&gt;$UCS2Lw. Informat&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p0g8qsehj8u86nn1r5niztwlr7m2.htm" target="_blank"&gt;$UCS2LEw. Informat&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p18tgtuefc588pn1a2ggwjs10d3v.htm" target="_blank"&gt;$UCS2Xw. Informat&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&lt;A title="" href="ms-its:nlsref.chm::/nlsref.hlp/p0j36n03zapslgn13fgytqf80v3y.htm" target="_blank"&gt;$UTF8Xw. Informat&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;waaay back in the 20th century we used to reply: RTFM&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;Ron Fehd&amp;nbsp; one of the Friendly Manual Readers&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="xrefSee"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Aug 2017 17:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Is-there-a-SAS-function-that-can-return-the-UTF-16-decimal-value/m-p/389595#M9873</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2017-08-21T17:51:13Z</dc:date>
    </item>
  </channel>
</rss>

