你在《HEAD》《/HEAD》中加入<META http-equiv=Content-Type content="text/html; charset=gb2312">看看
解决方案 »
- 请问用于.NET的版本控制软件有哪些?哪个比较容易使用?
- 怎么把DataTable的数据写入数据库,循环除外
- |zyciis| 我新建了一个类库,然后在里面添加了一些类,和几个js,和几张图片,我生成dll后,类里面的方法可以用,但里面的js和图片我在网页中如何调用 谢谢 常文件结构和内容
- .net运行环境问题?报错?
- 数据库联接字符串的区别
- 100分求此问题正解,C#.NET关于树形菜单问题........急......
- 在2003服务器下用ASP。NET(C#)上传文件总是出错:对路径**的访问被拒绝
- 我想指定频率、声道类型等参数来播放一个语音文件,怎么做呢?
- 我是一个小小草
- HTML 调用电脑手机摄像头拍照
- DATADRID模板列里CheckBox,报错对象不存在(单元格值null引起)!先判定还错。
- 怎样使textbox输入的文字右对齐?
<system.web>
<globalization requestEncoding="GB2312" responseEncoding="GB2312" culture="zh-CN" fileEncoding="GB2312" />
</system.web>
</configuration>
this .richTextBox1.Text=getPageHtml(para,content,"GB2312","GB2312");改为Response方式打印就看到结果。
<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title></title>
<link REL='stylesheet' HREF='travelskyNew.css'>
</head>
<body bgcolor=white onLoad='start()' onResize=start()>
<SCRIPT src=/gb/js/head10.js></script><SCRIPT src=/gb/js/floater.js></script><style type="text/css">
<!--
p,div {font-size:12px;line-height:16px;font-family:KNLe}
a:hover {color:red}
.p1 {font-size:9pt;font-family:KNLe;line-height:12pt}
.p2 {font-size:11pt;font-family:313316314345;line-height:16pt}
#p1 {font-size:9pt;font-family:KNLe;line-height:12pt}
.f1 {font-size:11pt}
.l1 {line-height:16pt;font-size:11pt}
.s1{font-size:8pt;font-family:KNLe;color:#F8D307}
a.t1 {color:white}
a.t1:hover {color:red}
#n1 {color:#6666cc}
#star {color:rgb(250,207,2);font-family:KNLe;font-size:12pt}
a{color:#2E5E8C;}
a:link {text-decoration: none; color: #blue;}
a:hover {color:rgb(210,4,4)}
a:visited{text-decoration: none; color:#blue}
a.menu{color:blue; text-decoration:none;}
a.menu:hover{text-decoration:underline;color:blue;}
a.menu:visited{color:#800080;}
td {font-size: 9pt;}
.FONT1 {FONT-FAMILY: ??; FONT-SIZE: 11pt; LINE-HEIGHT: 16pt}
.FONT2 {FONT-FAMILY: ??; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.big {font-family: Arial, Helvetica, ??; font-size: 13pt; font-weight: bold}
.cur {font-family: ??; font-size: 9pt; color: #ff0000}
.chn {font-family: ??; font-size: 9pt}
.dir {font-family: ??; font-size: 11pt; font-weight: bold}
.sub {font-family: ??; font-size: 9pt}
.hdr {font-family: ??; font-size: 11pt; font-weight: bold}
.itm {FONT-FAMILY: ??; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.FONT2 {FONT-FAMILY: ??; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.eng {font-family: Arial, Helvetica, ??; font-size: 9pt}
a.hover {color: red}
.cssNoBorder { border-style: solid; border-width: 0;font-family:"??";font-size:12px}
-->
</style>
<style type="text/css">
.bot {
font-family: "??";
font-size: 9pt; font-style: normal;
color: #000000;
background-color: #F7F5ED;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px}
</style>
</head>
<system.web>
<globalization requestEncoding="GB2312" responseEncoding="GB2312"/>
</system.web>
</configuration>
url:http://www.travelsky.com/gb/41find.jsp
读出来中文也是乱码。奇怪??
<script src=/gb/js/head41.js></script><script src=/gb/js/floater.js></script>
<table width=652 align=center bgcolor=#eef0ff><form method=post name=findspot action=/gb/41find.jsp><tr><td><a href=/gb/index.jsp?page=4&subpage=1><b>????</b></a></td><td>????:<select name=province><option selected value=>???<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>???<option>??<option>??<option>??<option>??<option>??<option>??<option>???<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??<option>??</select></td>
<td>????:<select name=theme><option selected value=>???<option>???<option>???<option>???<option>???<option>???<option>???<option>???<option>???<option>???<option>???</select></td>
<td>????:<input type=text name=freeStr><input type=submit value=??></td></form><form name=form1 method=post action=/gb/41.jsp><input type=hidden name=province></form></tr></table>
<table border=0 cellspacing=0 cellpadding=0 align=center><tr><td><img src=/gb/image/search_1.gif width=64 height=54></td><td valign=bottom><img src=/gb/image/search_2.gif width=112 height=47></td><td valign=bottom><img src=/gb/image/search_3.gif width=402 height=47></td></tr></table><table align=center width=630>
<tr><td height=300 align=center><b>??????????????????</b></td></tr></table>
<script src=/gb/js/bottom.js></script></body></html>
代码如下:
StreamReader sr = new StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.Default );