很简单的一个页面、出现乱码
PHP code<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title></title><?php include("conn.php"); if($_POST['sub']) { echo $_POST['urlname']; } ?>
------解决方案--------------------echo $_POST['urlname'];
出现乱码?
header('Content-Type: text/html; charset=utf-8');//添加此代码
------解决方案--------------------你输入utf-8的数据不就行了。复制-粘贴到utf-8的界面。
------解决方案--------------------不可能的!
除非你在浏览器上强制改变了编码
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