title: UTF-8 for URL, Java
body: <p>So I'm trying to scrape a grammar website that gives you conjugations of verbs, but I'm having trouble accessing the pages that require accents, such as the page for the verb "fág".</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>    String url = "http://www.teanglann.ie/en/gram/"+ URLEncoder.encode("fág","UTF-8");
      System.out.println(url);
  </code></pre>
  
  <p>I've tried this both with and without the URLEncoder.encode() method, and it just keeps giving me a '?' in place of the 'á' when working with it, and my URL search returns nothing. Basically, I was wondering if there was something similar to Python's 'urllib.parse.quote_plus'. I've tried searching and tried many different methods from StackOverflow, all to no avail. Any help would be greatly appreciated.</p>
  
  <p>Eventually, I'm going to replace the given string with a user inputed argument. Just using it to test at the moment.</p>
  
  <p><strong>Solution</strong>: It wasn't Java, but IntelliJ.</p>