<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: OpenWebSpider# v0.1 Command Line Arguments/Usage</title>
	<atom:link href="http://www.openwebspider.org/documentation/openwebspider-v01/openwebspider-v01-command-line-argumentsusage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openwebspider.org</link>
	<description>Open Source Web Spider</description>
	<lastBuildDate>Tue, 19 May 2009 07:59:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Shen139</title>
		<link>http://www.openwebspider.org/documentation/openwebspider-v01/openwebspider-v01-command-line-argumentsusage/comment-page-1/#comment-1850</link>
		<dc:creator>Shen139</dc:creator>
		<pubDate>Mon, 18 May 2009 08:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.openwebspider.org/?page_id=33#comment-1850</guid>
		<description>I can&#039;t help you because I don&#039;t use rails.
I can suggest you to download latest version of OWS and rebuild the database from scratch
(every new version of OWS improve encodings and something canges in the DB structure).

PHP-Side:
add this code at the beginning of the script:
	header(&quot;Content-type: text/html; charset=UTF-8&quot;);

add this code after MySQL Connect (mysql_connect):

	mysql_set_charset(&#039;utf8&#039;,$link); 
	
	mysql_query(&quot;SET NAMES &#039;UTF8&#039;;&quot;, $link);
	mysql_query(&quot;SET CHARACTER SET UTF8;&quot;, $link);

add this line to the HEAD of the page:
META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=UTF-8&quot;</description>
		<content:encoded><![CDATA[<p>I can&#8217;t help you because I don&#8217;t use rails.<br />
I can suggest you to download latest version of OWS and rebuild the database from scratch<br />
(every new version of OWS improve encodings and something canges in the DB structure).</p>
<p>PHP-Side:<br />
add this code at the beginning of the script:<br />
	header(&#8220;Content-type: text/html; charset=UTF-8&#8243;);</p>
<p>add this code after MySQL Connect (mysql_connect):</p>
<p>	mysql_set_charset(&#8216;utf8&#8242;,$link); </p>
<p>	mysql_query(&#8220;SET NAMES &#8216;UTF8&#8242;;&#8221;, $link);<br />
	mysql_query(&#8220;SET CHARACTER SET UTF8;&#8221;, $link);</p>
<p>add this line to the HEAD of the page:<br />
META HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=UTF-8&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fatticat</title>
		<link>http://www.openwebspider.org/documentation/openwebspider-v01/openwebspider-v01-command-line-argumentsusage/comment-page-1/#comment-1838</link>
		<dc:creator>fatticat</dc:creator>
		<pubDate>Thu, 14 May 2009 02:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.openwebspider.org/?page_id=33#comment-1838</guid>
		<description>my rails show  title : ã€äºŒæ‰‹è½¦èµ„è®¯ã€‘_ä¼˜å¡äºŒæ‰‹è½¦ç½‘ ä¸ªäººç™»å½• &#124; ç»é”€å•†ç™»å½• â”‚  i dont know why
your php example is good 

Mysql :SHOW VARIABLES LIKE &#039;char%&#039; 
&quot;Variable_name&quot;,&quot;Value&quot;
&quot;character_set_client&quot;,&quot;utf8&quot;
&quot;character_set_connection&quot;,&quot;utf8&quot;
&quot;character_set_database&quot;,&quot;utf8&quot;
&quot;character_set_filesystem&quot;,&quot;binary&quot;
&quot;character_set_results&quot;,&quot;utf8&quot;
&quot;character_set_server&quot;,&quot;latin1&quot;
&quot;character_set_system&quot;,&quot;utf8&quot;
&quot;character_sets_dir&quot;,&quot;/usr/share/mysql/charsets/&quot;

enviroment.rb:
  $KCODE = &#039;utf8&#039;
  require &#039;jcode&#039;

application.rb:
  before_filter :configure_charsets
  
  def set_charset
    content_type = headers[&quot;Content-Type&quot;] &#124;&#124; &#039;text/html&#039;
    if /^text\/html/.match(content_type)
      headers[&quot;Content-Type&quot;] = &quot;text/html; charset=utf-8&quot; 
    end
      headers[&quot;Keep-Alive&quot;] = &quot;timeout=60, max=256&quot;
  end
  
  def configure_charsets
    set_charset
  end

database.yml:
development:
  adapter: mysql
  database: se_spiderdb
  encoding: utf8 
  host: localhost
  port: 3306
  username: root</description>
		<content:encoded><![CDATA[<p>my rails show  title : ã€äºŒæ‰‹è½¦èµ„è®¯ã€‘_ä¼˜å¡äºŒæ‰‹è½¦ç½‘ ä¸ªäººç™»å½• | ç»é”€å•†ç™»å½• â”‚  i dont know why<br />
your php example is good </p>
<p>Mysql :SHOW VARIABLES LIKE &#8216;char%&#8217;<br />
&#8220;Variable_name&#8221;,&#8221;Value&#8221;<br />
&#8220;character_set_client&#8221;,&#8221;utf8&#8243;<br />
&#8220;character_set_connection&#8221;,&#8221;utf8&#8243;<br />
&#8220;character_set_database&#8221;,&#8221;utf8&#8243;<br />
&#8220;character_set_filesystem&#8221;,&#8221;binary&#8221;<br />
&#8220;character_set_results&#8221;,&#8221;utf8&#8243;<br />
&#8220;character_set_server&#8221;,&#8221;latin1&#8243;<br />
&#8220;character_set_system&#8221;,&#8221;utf8&#8243;<br />
&#8220;character_sets_dir&#8221;,&#8221;/usr/share/mysql/charsets/&#8221;</p>
<p>enviroment.rb:<br />
  $KCODE = &#8216;utf8&#8242;<br />
  require &#8216;jcode&#8217;</p>
<p>application.rb:<br />
  before_filter :configure_charsets</p>
<p>  def set_charset<br />
    content_type = headers["Content-Type"] || &#8216;text/html&#8217;<br />
    if /^text\/html/.match(content_type)<br />
      headers["Content-Type"] = &#8220;text/html; charset=utf-8&#8243;<br />
    end<br />
      headers["Keep-Alive"] = &#8220;timeout=60, max=256&#8243;<br />
  end</p>
<p>  def configure_charsets<br />
    set_charset<br />
  end</p>
<p>database.yml:<br />
development:<br />
  adapter: mysql<br />
  database: se_spiderdb<br />
  encoding: utf8<br />
  host: localhost<br />
  port: 3306<br />
  username: root</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fatticat</title>
		<link>http://www.openwebspider.org/documentation/openwebspider-v01/openwebspider-v01-command-line-argumentsusage/comment-page-1/#comment-1836</link>
		<dc:creator>fatticat</dc:creator>
		<pubDate>Thu, 14 May 2009 00:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.openwebspider.org/?page_id=33#comment-1836</guid>
		<description>Thanks your great web spider.
i just use rails to make simple tool just like your php example.
found a problem, i can not show the title  text in utf-8 charset.
googled around for the answer,...
encoding = utf8
...

but not working

so if you can help me to extract proper content to rails ?</description>
		<content:encoded><![CDATA[<p>Thanks your great web spider.<br />
i just use rails to make simple tool just like your php example.<br />
found a problem, i can not show the title  text in utf-8 charset.<br />
googled around for the answer,&#8230;<br />
encoding = utf8<br />
&#8230;</p>
<p>but not working</p>
<p>so if you can help me to extract proper content to rails ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OpenWebSpider# v0.1.1 &#124; OpenWebSpider</title>
		<link>http://www.openwebspider.org/documentation/openwebspider-v01/openwebspider-v01-command-line-argumentsusage/comment-page-1/#comment-172</link>
		<dc:creator>OpenWebSpider# v0.1.1 &#124; OpenWebSpider</dc:creator>
		<pubDate>Thu, 21 Aug 2008 09:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.openwebspider.org/?page_id=33#comment-172</guid>
		<description>[...] [New features here: OpenWebSpider# v0.1 Command Line Arguments/Usage] [...]</description>
		<content:encoded><![CDATA[<p>[...] [New features here: OpenWebSpider# v0.1 Command Line Arguments/Usage] [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

