title: Java UTF-8 strange behaviour
body: <p>I am trying to decode some UTF-8 strings in Java.
  These strings contain some combining unicode characters, such as CC 88 (combining diaresis).
  The character sequence seems ok, according to <a href="http://www.fileformat.info/info/unicode/char/0308/index.htm" rel="noreferrer">http://www.fileformat.info/info/unicode/char/0308/index.htm</a></p>
  
  <p>But the output after conversion to String is invalid.
  Any idea ?</p>
  
  <pre><code>byte[] utf8 = { 105, -52, -120 };
  System.out.print("{{");
  for(int i = 0; i &lt; utf8.length; ++i)
  {
      int value = utf8[i] &amp; 0xFF;
      System.out.print(Integer.toHexString(value));
  }
  System.out.println("}}");
  System.out.println("&gt;" + new String(utf8, "UTF-8"));
  </code></pre>
  
  <p>Output:</p>
  
  <pre>
      {{69cc88}}
      >i?
  </pre>