我上传了一个简单的htm页面上去这个空间显示很正常,没有乱码。
但是上传了其他的就会乱码。我对比了一下,贴出代码给大家:
index.htm:
- PHP code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/plain; charset=gb2312"> <title></title> </head> <body> <form name=keyForm method=post action="test.jsp"> <select name=model> <option value=model1>精确搜索</option> <option value=model2>不按顺序关键字搜索</option> <option value=model3>包含其中关键字搜索</option> </select> please input your keywords: <input type=text name=keyword> <input type=submit value=sub> </form> </body> </html>
地址:http://link.kilu.net/index.htm
但是上传了一个图片系统却完全乱码,连安装都不行,贴出代码:
- PHP code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <title>Æ벩ͼƬϵͳ°²×°³Ìʽ</title> <style type="text/css"> 地址:http://meinvbt.com.nu/install.php
而在本地调试的话,是这样子的:
- PHP code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <title>齐博图片系统安装程式</title>
在localhost一切都正常,但是空间却乱码,以前也发过这个帖子,后来不了了之,希望各位高人帮我看看,怎么解决
谢谢。
------解决方案--------------------
难道是空间支持gb2312,但是不支持gbk?
你的图片系统看看有没有gb2312或者utf8的版本
------解决方案--------------------
上传的时候改下编码方式试试。
------解决方案--------------------
全部使用utf8