IE11通过Window Location href实现下载页面报400

今天遇到个问题,通过window.location.href实现下载,谷歌没问题,但是IE11不兼容,页面报400,如下图:
IE11通过Window Location href实现下载页面报400
原因:
ie浏览器中跳转地址不能有中文字符
IE11通过Window Location href实现下载页面报400

解决办法:
通过encodeURI转换下就好了
IE11通过Window Location href实现下载页面报400
问题解决,可以正常下载了
IE11通过Window Location href实现下载页面报400