title: Javascript string comparison fails when comparing unicode characters
body: <p>I want to compare two strings in JavaScript that are the same, and yet the equality operator <code>==</code> returns false.  One string contains a special character (eg. the danish <code>å</code>).</p>
  
  <p>JavaScript code:</p>
  
  <pre><code>var filenameFromJS = "Designhåndbog.pdf";
  var filenameFromServer = "Designhåndbog.pdf";
  
  print(filenameFromJS == filenameFromServer); // This prints false why?
  </code></pre>
  
  <p><strong>The solution</strong>
  What worked for me is unicode normalization as slevithan pointed out.</p>
  
  <p>I forked my original jsfiddle to make a version using the normalization lib suggested by slevithan. Link: <a href="http://jsfiddle.net/GWZ8j/1/" rel="noreferrer">http://jsfiddle.net/GWZ8j/1/</a>.</p>