一段PHP在地址栏的汉语传值出现乱码
Jun 13, 2016 am 10:38 AM
一段PHP在地址栏的中文传值出现乱码
在IE下,中文传值,最后一个汉字变成了乱码,导致抓不出数据。
但是在火狐里面又可以。
传值页面,mysql,查询,接收值页面,均是UTF-8字库
这是咋回事呢?
------解决方案--------------------
把这个参数url_encode($name);一下
接下来时再url_decode($_GET['Tclass']);
------解决方案--------------------
- PHP code
1 |
|
------解决方案--------------------
1.引号内包含的表达式不会被解析。
- PHP code
1 |
|

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
