The axios request returns a question mark in Chinese, but there is no problem with the jQuery request.

vue rookie asks a question: there is no problem with the Chinese data returned by the previous project with the data requested by jQuery, but now the data returned by using vue to reconstruct the data returned with axios appears
clipboard.png

: UTF-8

clipboard.png


clipboard.png

.
Mar.07,2021

obviously there is a problem with the backend return. There should be no ISO-8859-1. Find this, replace it with UTF-8, or do not add charset, because the default return of json should be utf-8,. In addition, the returned code and the requested code are independent, so it has nothing to do with your axios.defaults.headers.post setting.

Menu