title: JTextPane output weird console characters
body: <p>I was trying to run console command in Kali linux, but the output are just weird when i pipe it to the <code>JTextPane</code>. When I diplay it on the output console of Netbean it was fine.</p>
  
  <p>Command that I'm trying to run: <code>wifite -e Experiment -c 1</code></p>
  
  <p><a href="https://i.stack.imgur.com/bRxYo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRxYo.png" alt="enter image description here"></a></p>
  
  <p>code:</p>
  
  <pre><code>    public cracker(JTextPane aOutputPane)
        {
         super();
          mOutputPane = aOutputPane;
    }
    @Override
    protected String doInBackground() throws Exception
    {
      Process p = null;
      try
      {
          String Channel=CNinput.getText();
          String WName=WN.getText();
        p = Runtime.getRuntime().exec("wifite -e "+WName+" -c "+Channel);
      }
      catch (IOException ex)
      {
        Logger.getLogger(home.class.getName()).log(Level.SEVERE, null, ex);
      }
      BufferedReader buf = new BufferedReader(new InputStreamReader(p.getInputStream()));
      String line = "";
      String output = "";
      try
      {
        while ((line = buf.readLine()) != null)
        {
          publish(line);
          output += line + "\n";
        }
      }
      cat
  
  ch (IOException ex)
      {
        Logger.getLogger(home.class.getName()).log(Level.SEVERE, null, ex);
      }
      try
      {
        p.waitFor();
      }
      catch (InterruptedException ex)
      {
        Logger.getLogger(home.class.getName()).log(Level.SEVERE, null, ex);
      }
      return output;
    }
    @Override
    protected void process(java.util.List&lt;String&gt; aChunks)
    {
      mOutputPane.setText(null);
      final String intermediateOutput = aChunks.stream().collect(Collectors.joining("\n"));
      final String existingText = mOutputPane.getText();
      final String newText = existingText + "\n" + intermediateOutput;
      mOutputPane.setText(newText);
  
    }
  
  }
  </code></pre>