title: Android app encoding problem - not display ÅÄÖ properly
body: <p>When user enters a value 'Nedskräpning' in a EditTextbox, it is saved as 'NedskrÃ¤pning' in the database. So I am assuming this error is generated from the Android part of the application. UPDATE: &lt;-- probably false assumption? </p>
  
  <pre><code> &lt;EditText android:id="@+id/commentTextBox"
                  android:layout_height="fill_parent"
                  android:layout_width="fill_parent" 
                  android:layout_weight="1"/&gt;
  </code></pre>
  
  <p>The java code:</p>
  
  <pre><code>commentTextBox = (EditText) findViewById(R.id.commentTextBox);
  crapport.setComment(commentTextBox.getText().toString());
  </code></pre>
  
  <p>Then this crapport is saved in the database. </p>
  
  <p>Any tips on how to solve this?</p>
  
  <p>UPDATE: This is my Apache CXF webservice:</p>
  
  <pre><code>  @Path("/crapportService/")
  public class CrapportServiceImpl implements CrapportService {
  
      @Autowired
      private CrapportController crapportController;
  
      @Override
      @Path("image")
      @POST
      @Produces(MediaType.TEXT_HTML)
      public String addReport(MultipartBody multipartBody) {
  
          List&lt;Attachment&gt; attachmentList = new ArrayList&lt;Attachment&gt;();
          attachmentList = multipartBody.getAllAttachments();
  
          if (attachmentList.size() == 0){
              return "No attachments";
          }
  
          try {
              crapportController.processReportFromClient(attachmentList);
          } catch (FileNotFoundException e) {
              e.printStackTrace();
              return "Error: FileNotFoundException";
          } catch (NullPointerException e) {
              return "Error: NullPointerException";
          } catch (IOException e) {
              return "Error: IOException";
          }
  
          return "Success";
      }
  
  }
  </code></pre>