title: Translation showing strange characters
body: <p>I translated a word by getting HTML Code from translation website.</p>
  
  <p>the translation is right while running the code  with NetBeans , but while </p>
  
  <p>running with jar file , I see unknown language ... </p>
  
  <p>any help, please.....</p>
  
  <p>From netbeans :</p>
  
  <p><a href="https://i.stack.imgur.com/zZBlM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zZBlM.png" alt="From netbeans"></a></p>
  
  <p>From jar file :</p>
  
  <p><a href="https://i.stack.imgur.com/yMTOg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yMTOg.png" alt="enter image description here"></a></p>
  
  <p>the code :</p>
  
  <pre><code>`/*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package javaapplication5;
  
  import java.util.ArrayList;
  import java.util.Scanner;
  
  import javax.swing.JOptionPane;
  
  public class Main {
  
      public static void main(String[] args) {
  
          String URLString = "http://www.systranet.com/dictionary/english-arabic/play";
  
          ArrayList&lt;String&gt; wordList = new ArrayList&lt;&gt;();
  
          String FlangMarker = "&lt;span class=\"dl_target_bullet\"&gt;&amp;diams;&lt;/span&gt;&lt;span class=\"dl_target_word\"&gt;";
          try {
              java.net.URL url = new java.net.URL(URLString);
  
              Scanner input = new Scanner(url.openStream());
              while (input.hasNext()) {
                  String line = input.nextLine();
                  //  System.out.println(line);
                  String word = "";
  
                  if (line.contains(FlangMarker)) {
                      for (int i = FlangMarker.length(); line.charAt(i) != '&lt;'; i++) {
                          word += line.charAt(i);
  
                      }
                      wordList.add(word);
                  }
              }
  
          } catch (java.net.MalformedURLException ex) {
              System.out.println("Invalid World");
          } catch (java.io.IOException ex) {
              System.out.println("I/O Errors: no such file");
          }
  
          for (int i = 0; i &lt; wordList.size(); i++) {
              JOptionPane.showMessageDialog(null, wordList.get(i));
          }
  
      }
  }
  
  
  `
  </code></pre>