title: Unicode character (U+1FXYZ) not outputting correctly when used in code-behind
body: <p>In my code-behind, I'm trying to return the hexcode for a unicode character.</p>
  
  <p>I'm trying to output any one of these characters for the Segoe UI Symbol font: <a href="http://www.istartedsomething.com/uploads/emojisegoe.html" rel="nofollow noreferrer">http://www.istartedsomething.com/uploads/emojisegoe.html</a>. For example, "U+1F60A".</p>
  
  <p>If I do so via my xaml, such as:</p>
  
  <pre><code>FontFamily="Segoe UI Symbol" Text="&amp;#x1F60A;"
  </code></pre>
  
  <p>Then it works fine.</p>
  
  <p>But if I bind the value to retrieve it via a .cs converter class, the correct character doesn't appear:</p>
  
  <pre><code>FontFamily="Segoe UI Symbol" Text="{Binding Pivot7Days.EmojiWeekendSummary, Converter={StaticResource EmoticonConverter}}"
  </code></pre>
  
  <p>Converter class:</p>
  
  <pre><code>switch (input)
  {
      case "happy":
          return "\u1F60A";
      case "sad":
          return "\u1F60B";
      default:
          return "\u1F610";
  }
  </code></pre>
  
  <p>I get an entirely different character followed by the final character in the returned string, such as 'A', 'B' or '0'. For example, when I should be seeing a face with tongue out (U+1F60B), I instead get the following:</p>
  
  <p><img src="https://i.stack.imgur.com/mWMBO.png" alt="enter image description here"></p>
  
  <p>Am I using the incorrect escape sequence in my code behind?</p>