title: android long dash in string in code
body: <p>I am trying to put a long dash "—" between two words in String in my Android project. For example something like this:  </p>
  
  <pre><code>Name — Surname 
  </code></pre>
  
  <p>The String will be converted in code, not in <strong>xml</strong>. The only way i found to do this, is converting String to <strong>HTML</strong> and back. Like this:  </p>
  
  <pre><code>stringBuilder.append(Name).append(" &amp; mdash; ").append(Surname);  
  Html.fromHtml(stringBuilder.toString()).toString();
  </code></pre>
  
  <p>(Space between "&amp;" and "mdash;" to prevent convertation on stackoverflow).<br> 
  Can it be done more elegant, without converting to <strong>HTML</strong> and back?<br> Thanks</p>