问题描述
请帮助 vue + axios + ISO-8859-1。我通过 axios 向 json 文件发出请求并得到响应:
服务器以 ISO 8895-1 编码发送它,我无法更改它。如何使用 axios 在 vue 组件中获得不同编码的输出?
mounted() {
axios
.get('http://example.com/status-json.xsl',{headers: {'Content-type': 'text/plain; charset=ISO-8859-1'}})
.then(response => (this.info = response.data.icestats.source.title))
.then(function (response) {console.log(response)});
},
我尝试更改/删除等
{headers: {'Content-type': 'text/plain; charset=ISO-8859-1'}}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)