title: window.location.href or $(location).attr('href') and Polish diacritics
body: <p>I've got a little problem with my code.
  In my website I got a search engine with filter option.
  The search condition are kept in window url, 
  but the filter in standard does not take the search parameters.</p>
  
  <p>I want to repair this problem.</p>
  
  <p>I wrote simple JS code below:</p>
  
  <pre><code>var link = window.location.href;
  var elementy = link.replace('+',' ').split('&amp;');
  </code></pre>
  
  <p>So if I have url like this http://mywww.pl/searchcond=&amp;cond1[somePolishCharHere]&amp;cond1</p>
  
  <p>and I use alert to show varible</p>
  
  <pre><code>alert(elementy[1]);
  </code></pre>
  
  <p>I expect to see 'cond1[somePolishCharHere]' but I've got 'cond1[someWirdStuffHere]'</p>
  
  <p>Website has set UTF-8 encoding, and for e.q. if i make something like this:</p>
  
  <pre><code>var test = [poslishCharHere];
  alert(test);
  </code></pre>
  
  <p>I got proper result ([poslishCharHere])</p>
  
  <p>And I have no idea what is wrong...</p>