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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd7c7a-310b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd7c7a-310b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?