title: Error when I try to put an ImageIcon in Java
body: <p>I tried to put a simple icon in a JPanel formatted with the BoxLayout.</p>
  
  <pre><code>    JPanel panel_4 = new JPanel();
      contentPane.add(panel_4, BorderLayout.CENTER);
      panel_4.setLayout(new BoxLayout(panel_4, BoxLayout.X_AXIS));
  
      ImageIcon seven= new ImageIcon("‪C:\\Users\\alewe\\workspace\\SlotMachine\\Lucky_Seven-128.png");
  
      JLabel lblNewLabel_1 = new JLabel(seven);
      panel_4.add(lblNewLabel_1);
  </code></pre>
  
  <p>When I ran the code it gave me the error "<code>Some characters cannot be mapped using "Cp1252" character encoding</code>", I saved by <code>UTF-8</code>, now it starts but I can't see the icon. </p>