title: How to correctly interpret arguments with Umlaute from a JSP-page
body: <p>I'm getting input from a text input field on a JSP page, that can contain Umlaute. (e.g. Ä,Ö,Ü,ä,ö,ü,ß).</p>
  
  <p>Processing the input works fine for non-Umlaute. But whenever an Umlaut is entered in the Input field an incorrect value gets passed on. </p>
  
  <p>For example:</p>
  
  <ul>
  <li>If an <strong>"ä" (UTF-8:U+00E4)</strong> gets entered in the input field, </li>
  <li>the String that is extracted from the argument is <strong>"Ã¤" (UTF-8: U+00C3 and U+00A4)</strong></li>
  </ul>
  
  <p>It seems to me as if the UTF-8 hex encoding (which is c3 a4 for an "ä") gets used for the conversion.</p>
  
  <p><strong>How can I retrieve the correct value?</strong>
  <br /><br /></p>
  
  <hr>
  
  <p>Here are snippets from the current implementation:</p>
  
  <p>The JSP-page passes the input value "pk" on to the processing logic:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  ...
  &lt;input type="text" name="&lt;%=pk.toString()%&gt;" value="&lt;%=value%&gt;" size="70"/&gt;
  &lt;button type="submit" title="Edit" value='Save' onclick="action.value='doSave';pk.value='&lt;%=pk.toString()%&gt;'"&gt;&lt;img src="icons/run.png"/&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p>The value gets retrieved from args and converted to a string:</p>
  
  <pre><code>UUID pk = UUID.fromString(args.get("pk")); //$NON-NLS-1$
  String value = args.get(pk.toString());
  </code></pre>
  
  <p><em>Note: Umlaute that are saved in the Database get displayed correctly on the page.</em></p>