The default encoding is system code page in Internet Explorer of URL's query string. It will make some errors when server side receive the query string with encoding UTF-8.
Encoding the query string to UTF-8 with JavaScript window.encodeURIComponent(str) before request send.
location.href = 'http://www.example.com/search?key=' + window.encodeURIComponent('文');