Home > Backend Development > PHP Problem > How to solve php jquery garbled problem

How to solve php jquery garbled problem

藏色散人
Release: 2023-03-02 07:40:01
Original
2005 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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template