Home  >  Article  >  Backend Development  >  dvwa+xampp搭建显示乱码的有关问题:解决方法

dvwa+xampp搭建显示乱码的有关问题:解决方法

WBOY
WBOYOriginal
2016-06-13 12:23:58966browse

dvwa+xampp搭建显示乱码的问题:解决办法

 

如图,dvwa显示乱码,解决办法有两个:

 

 

1、方法一是,临时解决办法,也就是每次都得手动修改:利用浏览器的编码修改

 

2、方法二是:永久方案,那就是修改dvwa的配置文件,修改默认编码,位置在(记得打开隐藏文件夹)

C:\xampp\htdocs\DVWA\dvwa\includes\dvwaPage.inc.php

由于安装路径不同,但是相对路径(即dvwa的安放路径)DVWA\dvwa\includes\dvwaPage.inc.php是不变的

修改里面的http头:把默认的编码utf-8修改为gb2312,这样每次显示就正常了

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