open-uri 中文问题

[code="java"]require 'open-uri'
open("http://wwwl.baidu.com").read[/code]
得到的内容有乱码,怎么解决乱码问题呢
[quote]

\260??\273?\243\254?\276?\252\265 body{margin:4px 0}p{margin:0;padding:0}img{border:0}td,p,#u{font-size:12px}#b,#u,#l td,a{font-family:arial}#kw{font:16px Verdana;height:1.78em;padding-top:2px}#b{height:30px;padding-top:4px}#b,#b a{color:#77c}#u{padding-right:10px;line-height:19px;text-align:right;margin:0 0 3px !important;margin:0 0 10px}#sb{height:2em;width:5.6em}#km{height:50px}#km a{font-family:??}#l{margin:0 0 5px 15px}#l td{padding-left:107px}p,table{width:650px;border:0}#l td,#sb,#km{font-size:14px}#l a,#l b{margin-right:1.14em}a{color:#00c}a:active{color:#f60}#hp{position:absolute;margin-left:6px}\n
\"\265?\275????</a



\n
var w=document.f.wd;w.focus();document.getElementById(\&quot;u\&quot;).innerHTML=&#39;<a href=\"http://passport.baidu.com/?login&tpl=mn&u='+escape(location.href)+'\">\265?\274</a>&#39;;function s(o){if(w.value.length&gt;0){var h=o.href;var q=encodeURIComponent(w.value);if(h.indexOf(\&quot;q=\&quot;)!=-1){o.href=h.replace(new RegExp(\&quot;q=[^&amp;$]*\&quot;),\&quot;q=\&quot;+q)}else{o.href+=\&quot;?q=\&quot;+q}}};(function(){if(new RegExp(\&quot;q=([^&amp;]+)\&quot;).test(location.search)){w.value=decodeURIComponent(RegExp.$1)}})() \260?
\270?\266
\n

 \277?²®a> | \270/a>

\n

\n

\260???Ý­??

???\271?a> | ??\267®N\260| \271????/a> | About Baidu

©2008 Baidu ??\260??\260\261?|/a> \276\251ICP?030173\272?/a>

<!--9e4e2f483832c794-->[/quote]

ruby 的 iconv 是用来进行内码转换的。
留意一下你read的网站的编码格式。
Iconv.open("UTF-8", "GBK")

还有,我直接用Net::HTTP.get url