Home  >  Article  >  Backend Development  >  How to solve php jquery garbled problem

How to solve php jquery garbled problem

藏色散人
藏色散人Original
2020-07-08 10:01:491862browse

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!

Statement:
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