Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of php glob garbled code

Shulou Source: shulou.com Published: 2022-06-02 22:21:14 10月03日 Update

This article mainly explains "how to solve the php glob garbled problem". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the php glob garbled problem".

Php glob garbled solutions: 1, check and modify the web server character set and page character set; 2, modify the configuration file content to "AddDefaultCharset UTF-8".

This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer

How to deal with Chinese garbled in php glob?

But how to deal with the output garbled when the file name in the root directory is in Chinese?

For example, create a new folder .txt

Solution:

Check your web server's character set settings and page's character set settings.

In the case of apache, the configuration file includes:

AddDefaultCharset UTF-8 thank you for your reading, the above is the content of "how to solve the php glob garbled problem", after the study of this article, I believe you have a deeper understanding of how to solve the php glob garbled problem, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Garbled problem character character set file content learning server page UTF-8 Chinese service check configuration method that is idea situation file name folder Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Shulou Technology Docker Redmi