Home > Backend Development > PHP Problem > What to do if js in php is garbled after loading

What to do if js in php is garbled after loading

藏色散人
Release: 2023-03-13 20:46:01
Original
1753 people have browsed it

Solution to the garbled code after loading js in php: 1. Save the written php file as ANSI encoding; 2. Set the encoding in the header of the php file; 3. Set utf- in the place containing the js file. 8 encoding is enough.

What to do if js in php is garbled after loading

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

What should I do if the js in php is loaded with garbled characters? ?

Completely solve the Chinese garbled problem caused by js included in php

Today, when writing the login module of php, the js file was included in the php file for login. Basic standard detection, but when previewing in the browser, garbled characters appeared (there is a setting in the head ), I checked the information online and added

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template