问一个抓取网页内容的有关问题

问一个抓取网页内容的问题


抓个网页的 http://www.douban.com/group/luoboyuan/'
源码如下,写出的文件是完整的网页源文件,但是在pos的时候却为‘no’  
content:=idhttp1.Get ('http://www.douban.com/group/luoboyuan/');
  //assignfile(f,'c:\1.txt');  //rewrite(f);write(f,content); closefile(f);
  if pos('萝卜的世界',content)>0 then
  showmessage('yes') else showmessage('no');
------解决思路----------------------
content:=idhttp1.Get ('http://www.douban.com/group/luoboyuan/');
  //assignfile(f,'c:\1.txt');  //rewrite(f);write(f,content); closefile(f);
  if pos(AnsiToUtf8('萝卜的世界'),content)>0 then
  showmessage('yes') else showmessage('no');