使用axios从前端向后端发送一个硬盘路径的参数,出现乱码问题

当我前端发送axios情趣没有设置header的时候,后端接收的数据是有一部分乱码的

img

img

但是当我设置上请求头之后,就会报不支持这个,这是怎么回事

img


```javascript
      printPersonBorrow(){
        this.$refs.personBorrowRef.validate( valid=>{
          if(!valid){
           return this.$message.error("路径不可为空")
          }
          this.$http({
            method:'post',
            url:'/borrowBookProxy/borrowBooks/printBorrowUsers',
            data:{
               path:this.printParam.printPath,
               user:this.queryUsers
            },
            headers: {
               'Content-Type': 'application/x-www-form-urlencoded'
            }
          })


```

https://ask.csdn.net/questions/7811109?spm=1001.2014.3001.5505