title: Printwriter println: no new line created
body: <p>I am trying to decode an outlook .MSG file to a text file, using Apache POI classes. </p>
  
  <p>Everything works fine, except for the <code>println</code> method of <code>PrintWriter</code>: it doesn´t create a new line. </p>
  
  <p>It just concatenates every sentence directly one after another. The result of the code snippet below is </p>
  
  <pre>
  "De: textPara: " iso 
  "De: "
  "Para: "
  </pre>
  
  <p>I tried the code on several machines: it works on my local tomcat instalation (Windows machine), but fails on a tomcat or Weblogic instalation on a Solaris platform. I thought it had something to do with the encoding algorithm, so I used <code>PrintStream</code> in stead of <code>Printwriter</code>, indicating the encoding ISO-8859-1, but no luck neither.</p>
  
  <p>Any idea?</p>
  
  <pre><code>    try {
          byte [] msgByte = Base64.decodeBase64(msgBase64);
  
          InputStream inputMsg = new ByteArrayInputStream(msgByte);
          msg = new MAPIMessage(inputMsg);
  
          /* 1. Transform MSG to TXT. */
          try {
              txtOut = new PrintWriter(outputMsg);
              try {
                  String displayFrom = msg.getDisplayFrom();
                  txtOut.println("De: "+displayFrom);
              } catch (ChunkNotFoundException e) {
                  _logger.info("Error extrayendo displayFrom: "+e);
              }
              try {
                  String displayTo = msg.getDisplayTo();
                  txtOut.println("Para: "+displayTo);
              } catch (ChunkNotFoundException e) {
                  _logger.info("Error extrayendo displayTo: "+e);
              }
  
          } finally {
          if(txtOut != null) {
              txtOut.close();}
          else {
              _logger.error("No se ha podido parsear el mensaje.");
          }
  
          }
  </code></pre>