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.
I want to repair this problem.
I wrote simple JS code below:
var link = window.location.href;
var elementy = link.replace('+',' ').split('&');
So if I have url like this http://mywww.pl/searchcond=&cond1[somePolishCharHere]&cond1
and I use alert to show varible
alert(elementy[1]);
I expect to see 'cond1[somePolishCharHere]' but I've got 'cond1[someWirdStuffHere]'
Website has set UTF-8 encoding, and for e.q. if i make something like this:
var test = [poslishCharHere];
alert(test);
I got proper result ([poslishCharHere])
And I have no idea what is wrong...