Home > Backend Development > PHP Tutorial > CodeIgniter PHP 超链接传参乱码

CodeIgniter PHP 超链接传参乱码

WBOY
Release: 2016-06-23 14:40:07
Original
1043 people have browsed it

"> 修改 
url 地址上面是不会乱码的

在test.php 控制层
   var_dump($projectname);  显示出来是乱码


大虾 怎么处理?


回复讨论(解决方案)

贴出点开链接,地址栏地址。

贴出点开链接,地址栏地址。

http://localhost:661/test/e9bf948aae148b6c07ba53a521ccef46/项目名称

"> 修改 

$projectname = iconv($projectname,"utf-8","gb2312");
echo $projectname;

$projectname = iconv($projectname,"utf-8","gb2312");
echo $projectname;

不好意思,写错了
$projectname = iconv("utf-8","gb2312",$projectname);
echo $projectname;
你试试


$projectname = iconv($projectname,"utf-8","gb2312");
echo $projectname;

不好意思,写错了
$projectname = iconv("utf-8","gb2312",$projectname);
echo $projectname;
你试试

------------------------------
不可以哇

你页面的编码是什么

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