title: How do I check equality of Unicode strings in Javascript?
body: <p>I have two strings in Javascript: <code>"_strange_chars_µö¬é@zendesk.com.eml"</code> (<code>f1</code>) and <code>"_strange_chars_µö¬é@zendesk.com.eml"</code> (<code>f2</code>). At first glance, they look identical (and, indeed, on StackOverflow, they may be; I'm not sure what happens when they are pasted into a form like this.) In my application, however,</p>
  
  <pre><code>f1[16] // ö
  f2[16] // o
  f1[17] // ¬
  f2[17] // ̈
  </code></pre>
  
  <p>That is, where <code>f1</code> uses the <em>ö</em> character, <code>f2</code> uses an <em>o</em> and a diacritic <em>¨</em> as a separate character. What comparison can I do that will show these two strings to be "equal"?</p>