thinkphp错误提示信息为乱码怎么解决?

PHPz
Release: 2020-09-04 18:13:36
Original
2194 people have browsed it

thinkphp错误提示信息为乱码的解决方法:在config文件中查找“SHOW_ERROR_MSG=>TRUE”,然后将“TRUE”改成“FALSE”,就可显示中文,不再乱码了。

thinkphp错误提示信息为乱码怎么解决?

thinkphp系统发生错误,但错误提示信息乱码:

本地连接服务器端数据库,系统报错,而且错误信息是乱码。

解决方法:

将config文件中的SHOW_ERROR_MSG=>TRUE,改成FALSE,就显示中文了。

若要显示自定义的错误信息。则加上'ERROR_MESSAGE' => '发生错误!',

若无自定义的错误信息。则默认会显示您浏览的页面暂时发生了错误!

更多相关知识,请访问 PHP中文网!!

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