title: Simple Normalizing Text Example Does Not Work
body: <p>I am trying to decompose some text.  Example from here: <a href="http://docs.oracle.com/javase/6/docs/api/java/text/Normalizer.html" rel="nofollow">http://docs.oracle.com/javase/6/docs/api/java/text/Normalizer.html</a></p>
  
  <pre><code>  U+00C1    LATIN CAPITAL LETTER A WITH ACUTE (Á)
  </code></pre>
  
  <p>or as two separate characters (the "decomposed" form):</p>
  
  <pre><code>  U+0041    LATIN CAPITAL LETTER A
    U+0301    COMBINING ACUTE ACCENT
  </code></pre>
  
  <p>I am following this tutorial page from Oracle: <a href="http://docs.oracle.com/javase/tutorial/i18n/text/normalizerapi.html" rel="nofollow">http://docs.oracle.com/javase/tutorial/i18n/text/normalizerapi.html</a></p>
  
  <p>This simple case does not work for me:</p>
  
  <ul>
  <li>Original word: <code>"schön"</code></li>
  <li>NFC: <code>"schön"</code></li>
  <li>NFD: <code>"scho\u0308n"</code></li>
  <li>NFKC: <code>"schön"</code></li>
  <li>NFKD: <code>"scho\u0308n"</code></li>
  </ul>
  
  <p>In all cases above, the function <code>Normalizer.normalize("schön", form)</code> (where form is one of <code>Normalizer.Form.NFC</code>, <code>Normalizer.Form.NFD</code>, etc.), the result is the same: <code>"schön"</code></p>
  
  <p>This code does not work on my Oracle JDK 1.6 or 1.7 installations on Linux, using in Eclipse JDT.</p>
  
  <pre><code>String n = Normalizer.normalize("schön", Normalizer.Form.NFD);
  </code></pre>
  
  <p>Result <code>n</code> is always "schön".</p>
  
  <p>This "problem" smells like either (1) I completely misunderstand this function, or (2) a bad environment.  I am stuck.  Any suggestions?  My system setup is pretty vanilla as it goes.</p>