How to solve php jquery garbled problem

藏色散人
Release: 2023-03-02 07:40:01
Original
1920 people have browsed it

php The solution to the jquery garbled problem is to add the statement "header('Content-Type: text/html; charset=utf-8');" to the php method and save it.

How to solve php jquery garbled problem

jquery ajax php garbled problem

Solution:

add ## to the php method

#header('Content-Type:text/html;charset=utf-8');

If utf-8 does not work, change to gbk, and try gb2312 slowly.

For more related knowledge, please visit

PHP Chinese website!

The above is the detailed content of How to solve php jquery garbled problem. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!