title: UTF-8 encoding in JLabel on Windows
body: <p>I have a problem with encoding in JLabel on Windows(on *nix OSes everything is okay).
  Here's an image: <a href="http://i.imgur.com/DEkj3.png" rel="nofollow">http://i.imgur.com/DEkj3.png</a> (the problematic character is the L with ` on the top, it should be ł) and here the code:</p>
  
  <pre><code>public void run()
      {
              URL url;
              HttpURLConnection conn;
              BufferedReader rd;
              String line;
              String result = "";
              try {
                  url = new URL(URL);
                  conn = (HttpURLConnection) url.openConnection();
                  conn.setRequestMethod("GET");
                  rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                  while ((line = rd.readLine()) != null) {
                      result += line;
                  }
                  rd.close();
              } catch (Exception e) {
                  try
                  {
                      throw e;
                  }
                  catch (Exception e1)
                  {
                      Window.news.setText("");
                  }
              }
                  Window.news.setText(result);
          }
  </code></pre>
  
  <p>I've tried <code>Window.news.setText(new String(result.getBytes(), "UTF-8"));</code>, but it hasn't helped. Maybe I need to run my application with specified JVM flags?</p>